結果

問題 No.870 無敵囲い
ユーザー c-yanc-yan
提出日時 2020-05-10 00:10:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 300 ms
コード長 334 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-29 06:41:06
合計ジャッジ時間 1,445 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

A = (2, 8)
B = (3, 9)
C = (7, 9)
for _ in range(N):
    x1, y1, x2, y2 = map(int, input().split())
    if A == (x1, y1):
        A = (x2, y2)
    if B == (x1, y1):
        B = (x2, y2)
    if C == (x1, y1):
        C = (x2, y2)

if A == (5, 8) and B == (4, 8) and C == (6, 8):
    print('YES')
else:
    print('NO')
0