結果

問題 No.870 無敵囲い
コンテスト
ユーザー gorugo30
提出日時 2021-02-23 12:53:45
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 25 ms / 300 ms
コード長 331 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 123 ms
コンパイル使用メモリ 85,320 KB
実行使用メモリ 53,496 KB
最終ジャッジ日時 2026-03-18 17:06:18
合計ジャッジ時間 1,316 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
A = [2, 8]
B = [3, 9]
C = [7, 9]
for i in range(N):
    x1, y1, x2, y2 = map(int, input().split())
    if [x1, y1] == A:
        A = [x2, y2]
    if [x1, y1] == B:
        B = [x2, y2]
    if [x1, y1] == C:
        C = [x2, y2]
if A == [5, 8] and B == [4, 8] and C == [6, 8]:
    print("YES")
else:
    print("NO")
0