結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー convexineqconvexineq
提出日時 2021-03-13 17:20:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 59,136 KB
最終ジャッジ日時 2024-04-23 08:09:27
合計ジャッジ時間 1,694 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,456 KB
testcase_01 AC 41 ms
51,456 KB
testcase_02 AC 38 ms
51,712 KB
testcase_03 AC 38 ms
51,840 KB
testcase_04 AC 41 ms
57,216 KB
testcase_05 AC 45 ms
57,856 KB
testcase_06 AC 43 ms
58,240 KB
testcase_07 AC 42 ms
57,472 KB
testcase_08 AC 43 ms
57,216 KB
testcase_09 AC 42 ms
57,728 KB
testcase_10 AC 42 ms
57,856 KB
testcase_11 AC 43 ms
57,856 KB
testcase_12 AC 43 ms
57,984 KB
testcase_13 AC 44 ms
58,240 KB
testcase_14 AC 44 ms
58,368 KB
testcase_15 AC 49 ms
59,136 KB
testcase_16 AC 43 ms
57,472 KB
testcase_17 AC 44 ms
58,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,L,R = map(int,input().split())
DLR = []
for i in range(n):
    l,u,r,d = map(int,input().split())
    DLR.append((d,max(0,l),min(r,1929),i+1))
DLR.sort()
res = [0]*1930
for d,l,r,i in DLR:
    for j in range(l,r+1):
        res[j] = i
cnt = [0]*(n+1)
for i in range(L,R+1):
    cnt[res[i]] = 1
print(*cnt[1:],sep="\n")
0