結果
問題 |
No.870 無敵囲い
|
ユーザー |
|
提出日時 | 2022-03-10 12:22:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 300 ms |
コード長 | 264 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-09-14 13:33:16 |
合計ジャッジ時間 | 2,061 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
n = int(input()) start = [[2,8],[3,9],[7,9]] for i in range(n): xy = list(map(int,input().split())) xy1 = xy[:2] xy2 = xy[2:] if xy1 in start: start[start.index(xy1)]=xy2 print("YES") if start==[[5, 8], [4, 8], [6, 8]] else print("NO")