結果
| 問題 | No.870 無敵囲い | 
| コンテスト | |
| ユーザー |  hase_0o0 | 
| 提出日時 | 2019-10-26 00:49:54 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 41 ms / 300 ms | 
| コード長 | 302 bytes | 
| コンパイル時間 | 152 ms | 
| コンパイル使用メモリ | 82,292 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2024-06-29 06:26:49 | 
| 合計ジャッジ時間 | 1,702 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 18 | 
ソースコード
n=int(input())
xy=[[2,8],[3,9],[7,9]]
for _ in range(n):
    x1,y1,x2,y2=map(int,input().split())
    for i in range(3):
        if xy[i][0]==x1 and xy[i][1]==y1:
            xy[i][0]=x2
            xy[i][1]=y2
if xy[0]==[5,8] and xy[1]==[4,8] and xy[2]==[6,8]:
    print("YES")
else:
    print("NO")
            
            
            
        