結果
問題 | No.870 無敵囲い |
ユーザー |
![]() |
提出日時 | 2021-02-07 19:27:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 300 ms |
コード長 | 284 bytes |
コンパイル時間 | 173 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-06-29 06:46:44 |
合計ジャッジ時間 | 1,813 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
n = int(input()) K = [(2, 8), (3, 9), (7, 9)] for _ in range(n): a, b, c, d = map(int, input().split()) if (a, b) in K: i = K.index((a, b)) K[i] = (c, d) ans = K[0] == (5, 8) and K[1] == (4, 8) and K[2] == (6, 8) if ans: print("YES") else: print("NO")