結果
問題 |
No.870 無敵囲い
|
ユーザー |
|
提出日時 | 2022-03-24 18:23:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 37 ms / 300 ms |
コード長 | 284 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-10-13 02:04:36 |
合計ジャッジ時間 | 1,732 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
N = int(input()) A = (2,8) B = (3,9) C = (7,9) l = [A,B,C] for _ in range(N): x,y,z,w = map(int,input().split()) for i in range(3): if l[i] == (x,y): l[i] = (z,w) if l[0] == (5,8) and l[1] == (4,8) and l[2] == (6,8): print('YES') else: print('NO')