結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー tktk_snsntktk_snsn
提出日時 2021-01-30 12:31:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 552 bytes
コンパイル時間 1,161 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 75,892 KB
最終ジャッジ日時 2023-09-10 09:18:25
合計ジャッジ時間 3,579 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,052 KB
testcase_01 AC 72 ms
71,444 KB
testcase_02 AC 69 ms
71,364 KB
testcase_03 AC 70 ms
71,044 KB
testcase_04 AC 75 ms
75,464 KB
testcase_05 AC 80 ms
75,880 KB
testcase_06 AC 77 ms
75,856 KB
testcase_07 AC 76 ms
75,784 KB
testcase_08 AC 75 ms
75,740 KB
testcase_09 AC 77 ms
75,448 KB
testcase_10 AC 76 ms
75,892 KB
testcase_11 AC 74 ms
75,548 KB
testcase_12 AC 76 ms
75,592 KB
testcase_13 AC 75 ms
75,640 KB
testcase_14 AC 78 ms
75,788 KB
testcase_15 AC 81 ms
75,744 KB
testcase_16 AC 78 ms
75,724 KB
testcase_17 AC 77 ms
75,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)

N, L, R = map(int, input().split())
pixel = [-1] * (1280 + 1)
height = [-1] * N
for i in range(N):
    xl, _, xr, y = map(int, input().split())
    xl = max(0, xl)
    xr = min(1280, xr)
    height[i] = y
    for j in range(xl, xr + 1):
        if pixel[j] == -1:
            pixel[j] = i
        elif height[pixel[j]] < y:
            pixel[j] = i

ans = [0] * N
for i in range(L, R+1):
    p = pixel[i]
    if p == -1:
        continue
    ans[p] = 1

print(*ans, sep="\n")
0