結果
| 問題 | 
                            No.870 無敵囲い
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-10-11 14:01:07 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 30 ms / 300 ms | 
| コード長 | 353 bytes | 
| コンパイル時間 | 113 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-06-29 06:26:00 | 
| 合計ジャッジ時間 | 1,409 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 18 | 
ソースコード
L28 = [2, 8]
L39 = [3, 9]
L79 = [7, 9]
for _ in range(int(input())):
    a, b, c, d = map(int, input().split())
    if [a, b] == [L28[0], L28[1]]:
        L28 = [c, d]
    if [a, b] == [L39[0], L39[1]]:
        L39 = [c, d]
    if [a, b] == [L79[0], L79[1]]:
        L79 = [c, d]
print(['NO', 'YES'][L28 == [5, 8] and L39 == [4, 8] and L79 == [6, 8]])