結果

問題 No.870 無敵囲い
ユーザー gorugo30gorugo30
提出日時 2021-02-23 12:53:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 300 ms
コード長 331 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 71,328 KB
最終ジャッジ日時 2023-09-11 16:38:53
合計ジャッジ時間 2,776 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,044 KB
testcase_01 AC 74 ms
71,240 KB
testcase_02 AC 72 ms
71,236 KB
testcase_03 AC 72 ms
71,064 KB
testcase_04 AC 72 ms
71,220 KB
testcase_05 AC 72 ms
71,232 KB
testcase_06 AC 72 ms
71,232 KB
testcase_07 AC 72 ms
71,244 KB
testcase_08 AC 71 ms
71,084 KB
testcase_09 AC 72 ms
71,240 KB
testcase_10 AC 73 ms
71,296 KB
testcase_11 AC 72 ms
71,100 KB
testcase_12 AC 71 ms
71,092 KB
testcase_13 AC 73 ms
71,124 KB
testcase_14 AC 72 ms
71,296 KB
testcase_15 AC 72 ms
71,272 KB
testcase_16 AC 72 ms
70,952 KB
testcase_17 AC 73 ms
71,276 KB
testcase_18 AC 72 ms
71,196 KB
testcase_19 AC 72 ms
71,232 KB
testcase_20 AC 75 ms
71,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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