結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,284 KB
testcase_01 AC 64 ms
71,380 KB
testcase_02 AC 63 ms
71,284 KB
testcase_03 AC 61 ms
71,340 KB
testcase_04 AC 66 ms
71,108 KB
testcase_05 AC 62 ms
71,372 KB
testcase_06 AC 60 ms
71,400 KB
testcase_07 AC 60 ms
71,376 KB
testcase_08 AC 63 ms
71,444 KB
testcase_09 AC 62 ms
71,576 KB
testcase_10 AC 61 ms
71,300 KB
testcase_11 AC 61 ms
71,564 KB
testcase_12 AC 60 ms
71,376 KB
testcase_13 AC 59 ms
71,372 KB
testcase_14 AC 62 ms
71,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = []
ok = True

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

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