結果
| 問題 | No.678 2Dシューティングゲームの必殺ビーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-01-02 12:55:03 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 49 ms / 2,000 ms | 
| コード長 | 500 bytes | 
| コンパイル時間 | 552 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-11-19 01:00:58 | 
| 合計ジャッジ時間 | 2,037 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 18 | 
ソースコード
# -*- coding: utf-8 -*-
n,lb,rb = map(int, input().split())
xl = [list(map(int, input().split())) for _ in range(n)]
def check(x):
    hit = -1
    for i in range(n):
        if xl[i][0]<=x<=xl[i][2]:
            if hit==-1:
                hit = i
            else:
                if xl[i][3]>xl[hit][3]:
                    hit = i
    return hit
hitList = [0]*n
x = lb
while x<=rb:
    hitIdx = check(x)
    if hitIdx>-1:
        hitList[hitIdx] = 1
    x += 1
for h in hitList:
    print(h)
            
            
            
        