結果
| 問題 | No.870 無敵囲い | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-07-04 22:16:14 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 27 ms / 300 ms | 
| コード長 | 250 bytes | 
| コンパイル時間 | 85 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-06-29 06:42:27 | 
| 合計ジャッジ時間 | 1,426 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 18 | 
ソースコード
f=[[0]*10 for i in range(10)]
f[2][8]=1
f[3][9]=2
f[7][9]=3
n=int(input())
for i in range(n):
    sx,sy,gx,gy=map(int,input().split())
    (f[sx][sy],f[gx][gy])=(f[gx][gy],f[sx][sy])
print("YES" if f[5][8]==1 and f[4][8]==2 and f[6][8]==3 else "NO")
            
            
            
        