結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー ikoma
提出日時 2022-05-20 21:23:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-09-20 07:07:48
合計ジャッジ時間 1,369 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

S=""
for i in range(3):
    S+=input().strip()
s=S[0]
print("Yes" if all([ss!=s for ss in S[1::2]]+[ss==s for ss in S[2::2]]) else "No")
0