結果
問題 | No.870 無敵囲い |
ユーザー | Co-3 |
提出日時 | 2020-09-21 22:38:43 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
WA
|
実行時間 | - |
コード長 | 393 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 10,888 KB |
実行使用メモリ | 7,996 KB |
最終ジャッジ日時 | 2023-09-11 16:36:16 |
合計ジャッジ時間 | 1,404 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 15 ms
7,816 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 15 ms
7,784 KB |
testcase_06 | WA | - |
testcase_07 | AC | 15 ms
7,816 KB |
testcase_08 | AC | 15 ms
7,756 KB |
testcase_09 | AC | 15 ms
7,784 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 15 ms
7,792 KB |
testcase_13 | AC | 16 ms
7,792 KB |
testcase_14 | AC | 15 ms
7,784 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 15 ms
7,836 KB |
testcase_20 | AC | 15 ms
7,812 KB |
ソースコード
a = int(input()) b = ["b","2","8"] c = ["c","3","9"] d = ["d","7","9"] i = "b" j = "c" k = "d" for i in range(a): e,f,g,h = map(str,input().split()) if b == [i,e,f]: b = [i,g,h] elif c == [j,e,f]: c = [j,g,h] elif d == [k,e,f]: d = [k,g,h] if b == ["b","5","8"] and c == ["c","4","8"] and d == ["d","6","8"]: print("YES") else: print("NO")