結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー akitsugu777
提出日時 2018-11-08 17:17:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-20 21:08:12
合計ジャッジ時間 1,376 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

n, xlb, xrb = map(int, input().split())
enemies = []
for i in range(n):
    enemies.append([i+1] + list(map(int, input().split())))

result = [0] * (n+1)
beams = [1 if xlb <= x <= xrb else 0 for x in range(1281)]

for i, xl, yu, xr, yd in enemies:
    for x in range(max(0, xl), min(xr, 1280)+1):
        if beams[x]:
            result[i] = 1
            beams[x] = 0

print("\n".join(map(str, result[1:])))
0