結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー rlangevinrlangevin
提出日時 2023-01-20 00:25:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 401 bytes
コンパイル時間 1,425 ms
コンパイル使用メモリ 87,008 KB
実行使用メモリ 76,268 KB
最終ジャッジ日時 2023-09-04 19:36:14
合計ジャッジ時間 4,612 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,240 KB
testcase_01 AC 73 ms
71,156 KB
testcase_02 AC 73 ms
71,332 KB
testcase_03 AC 73 ms
71,392 KB
testcase_04 AC 80 ms
75,984 KB
testcase_05 AC 84 ms
76,268 KB
testcase_06 AC 86 ms
76,132 KB
testcase_07 AC 80 ms
75,832 KB
testcase_08 AC 76 ms
75,736 KB
testcase_09 AC 77 ms
75,776 KB
testcase_10 AC 82 ms
75,804 KB
testcase_11 AC 81 ms
75,720 KB
testcase_12 AC 77 ms
75,732 KB
testcase_13 AC 83 ms
75,912 KB
testcase_14 AC 83 ms
76,124 KB
testcase_15 AC 84 ms
76,144 KB
testcase_16 AC 77 ms
75,936 KB
testcase_17 AC 81 ms
75,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, L, R = map(int, input().split())
maxv = [-1] * 2005
ans = [-1] * 2005
for i in range(N):
    xL, yU, xR, yD = map(int, input().split())
    xL = max(0, xL)
    for j in range(xL, xR + 1):
        if yD > maxv[j]:
            maxv[j] = yD
            ans[j] = i

S = set()
for i in range(L, R + 1):
    S.add(ans[i])
    
for i in range(N):
    if i in S:
        print(1)
    else:
        print(0)
0