結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2022-07-02 22:21:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-08-18 14:53:02
合計ジャッジ時間 2,383 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,584 KB
testcase_01 AC 62 ms
71,360 KB
testcase_02 AC 66 ms
71,328 KB
testcase_03 AC 66 ms
71,376 KB
testcase_04 AC 63 ms
71,124 KB
testcase_05 AC 63 ms
71,140 KB
testcase_06 AC 66 ms
71,448 KB
testcase_07 AC 65 ms
71,408 KB
testcase_08 AC 66 ms
71,340 KB
testcase_09 AC 66 ms
71,464 KB
testcase_10 AC 64 ms
71,368 KB
testcase_11 AC 64 ms
71,488 KB
testcase_12 AC 65 ms
71,120 KB
testcase_13 AC 66 ms
71,476 KB
testcase_14 AC 63 ms
71,124 KB
権限があれば一括ダウンロードができます

ソースコード

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