結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー 加藤優太加藤優太
提出日時 2022-05-20 23:24:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 422 ms
コンパイル使用メモリ 11,916 KB
実行使用メモリ 10,000 KB
最終ジャッジ日時 2023-10-20 14:16:33
合計ジャッジ時間 1,610 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def check_array(array):
    if array[0] == array[2] and array[0] != arr[1]:
        return True
    return False


arr = []
for i in range(3):
    arr.append(list(input()))
if (
    arr[0][0] == arr[2][0]
    and arr[0][0] != arr[1][0]
    and check_array(arr[0])
    and check_array(arr[1])
    and check_array(arr[2])
):
    print("Yes")
else:
    print("No")
0