結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー 👑 rin204rin204
提出日時 2022-01-19 20:50:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 372 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 63,360 KB
最終ジャッジ日時 2024-05-02 19:57:29
合計ジャッジ時間 2,034 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
56,960 KB
testcase_01 AC 45 ms
57,344 KB
testcase_02 AC 45 ms
57,088 KB
testcase_03 AC 45 ms
57,088 KB
testcase_04 AC 45 ms
57,984 KB
testcase_05 AC 53 ms
61,312 KB
testcase_06 AC 52 ms
61,056 KB
testcase_07 AC 49 ms
59,008 KB
testcase_08 AC 49 ms
59,520 KB
testcase_09 AC 52 ms
61,056 KB
testcase_10 AC 51 ms
60,032 KB
testcase_11 AC 49 ms
58,880 KB
testcase_12 AC 48 ms
58,496 KB
testcase_13 AC 54 ms
60,672 KB
testcase_14 AC 55 ms
61,312 KB
testcase_15 AC 60 ms
63,360 KB
testcase_16 AC 51 ms
60,416 KB
testcase_17 AC 53 ms
61,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, xlb, xrb = map(int, input().split())

lst = [[] for _ in range(3000)]

for i in range(n):
    xl, yu, xr, yd = map(int, input().split())
    for j in range(xl, xr + 1):
        lst[j].append((yd, i))
        
ans = [0] * n
for i in range(xlb, xrb + 1):
    if not lst[i]:
        continue
    lst[i].sort(reverse = True)
    ans[lst[i][0][1]] |= 1
print(*ans, sep="\n")
0