結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー neko0774neko0774
提出日時 2022-05-20 21:32:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 11,916 KB
実行使用メモリ 9,872 KB
最終ジャッジ日時 2023-10-20 11:51:25
合計ジャッジ時間 1,230 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,872 KB
testcase_01 AC 30 ms
9,872 KB
testcase_02 AC 30 ms
9,872 KB
testcase_03 AC 31 ms
9,872 KB
testcase_04 AC 29 ms
9,872 KB
testcase_05 AC 29 ms
9,872 KB
testcase_06 AC 29 ms
9,872 KB
testcase_07 AC 29 ms
9,872 KB
testcase_08 AC 29 ms
9,872 KB
testcase_09 AC 29 ms
9,872 KB
testcase_10 AC 29 ms
9,872 KB
testcase_11 AC 29 ms
9,872 KB
testcase_12 AC 30 ms
9,872 KB
testcase_13 AC 29 ms
9,872 KB
testcase_14 AC 33 ms
9,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

inf=10**18
dxy=[(0,1), (1,0), (-1, 0), (0, -1)]
mod=10**9+7
MOD=998244353

    

def judge(a, b, c):
    x = "#.#"
    y = ".#."

    return (a==x and b==y and c==x) or (a==y and b==x and c==y)

def main():
    S1 = input()
    S2 = input()
    S3 = input()
    if judge(S1, S2, S3):print("Yes")
    else: print("No")



main()
0