結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー kohei2019kohei2019
提出日時 2022-03-11 00:59:41
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 380 bytes
コンパイル時間 757 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 79,736 KB
最終ジャッジ日時 2023-10-13 03:17:17
合計ジャッジ時間 3,692 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,408 KB
testcase_01 AC 76 ms
71,476 KB
testcase_02 AC 77 ms
71,412 KB
testcase_03 AC 79 ms
71,464 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 WA -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 82 ms
75,896 KB
testcase_12 AC 81 ms
75,600 KB
testcase_13 AC 80 ms
75,664 KB
testcase_14 AC 82 ms
75,940 KB
testcase_15 WA -
testcase_16 AC 80 ms
75,664 KB
testcase_17 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,L,R = map(int,input().split())
INF = float('INF')
ls = [-1]*(1281)
ll = []
for i in range(N):
    ll.append(list(map(int,input().split()))+[i])
ll.sort(key=lambda x:x[1])
for i in range(N):
    xl,yu,xr,yd,ind = ll[i]
    for j in range(xl,xr+1):
        ls[j] = ind
la = [0]*N

for i in range(L,R+1):
    if ls[i] == -1:
        continue
    la[ls[i]] = 1

print(*la,sep='\n')
0