結果
問題 | No.870 無敵囲い |
ユーザー |
|
提出日時 | 2022-05-17 23:28:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 300 ms |
コード長 | 261 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 51,968 KB |
最終ジャッジ日時 | 2024-09-15 22:16:11 |
合計ジャッジ時間 | 1,839 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
n = int(input())l = [[2,8],[3,9],[7,9]]for i in range(n):x1,y1,x2,y2 = map(int,input().split())for j in range(3):if l[j] == [x1,y1]:l[j] = [x2,y2]if l == [[5,8],[4,8],[6,8]]:print("YES")else:print("NO")