結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2022-07-02 22:21:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 82,012 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-11-27 20:49:57
合計ジャッジ時間 1,364 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

s = []
ok = True

for i in range(3):
    s.append(input())
    for j, v in enumerate(s[i]):
        if i != 0 and s[i - 1][j] == v:
            ok = False
        # end
        if j != 0 and s[i][j - 1] == v:
            ok = False
        # end
    # end
# end

if ok:
    print("Yes")
else:
    print("No")
# end
0