結果
| 問題 |
No.678 2Dシューティングゲームの必殺ビーム
|
| コンテスト | |
| ユーザー |
tktk_snsn
|
| 提出日時 | 2021-01-30 12:31:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 2,000 ms |
| コード長 | 552 bytes |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 60,672 KB |
| 最終ジャッジ日時 | 2024-06-28 00:43:33 |
| 合計ジャッジ時間 | 1,684 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 |
ソースコード
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")
tktk_snsn