結果
| 問題 | No.870 無敵囲い | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-07-09 10:43:53 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 66 ms / 300 ms | 
| コード長 | 407 bytes | 
| コンパイル時間 | 286 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-09 10:43:56 | 
| 合計ジャッジ時間 | 2,650 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 18 | 
ソースコード
n = int(input())
x1, y1 = 2, 8 # 5, 8
x2, y2 = 3, 9 # 4, 8
x3, y3 = 7, 9 # 6, 8
for _ in range(n):
    x, y, a, b = map(int, input().split())
    if x == x1 and y == y1:
        x1, y1 = a, b
    elif x == x2 and y == y2:
        x2, y2 = a, b
    elif x == x3 and y == y3:
        x3, y3 = a, b
if x1 == 5 and y1 == 8 and x2 == 4 and y2 == 8 and x3 == 6 and y3 == 8:
    print("YES")
else:
    print("NO")
            
            
            
        