結果
問題 | No.870 無敵囲い |
ユーザー |
![]() |
提出日時 | 2020-01-04 11:20:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 300 ms |
コード長 | 379 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-29 06:36:05 |
合計ジャッジ時間 | 1,541 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
N = int(input()) A1 = [2, 8] A2 = [5, 8] B1 = [3, 9] B2 = [4, 8] C1 = [7, 9] C2 = [6, 8] for i in range(N): x1, y1, x2, y2 = map(int, input().split()) D1 = [x1, y1] D2 = [x2, y2] if A1 == D1: A1 = D2 elif B1 == D1: B1 = D2 elif C1 == D1: C1 = D2 if (A1 == A2) and (B1 == B2) and (C1 == C2): print("YES") else: print("NO")