結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー tails1434tails1434
提出日時 2020-01-22 07:32:33
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 596 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 77,104 KB
最終ジャッジ日時 2023-09-21 12:15:10
合計ジャッジ時間 3,376 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,368 KB
testcase_01 AC 76 ms
71,556 KB
testcase_02 AC 76 ms
71,500 KB
testcase_03 AC 75 ms
71,536 KB
testcase_04 AC 97 ms
76,680 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N, xlb, xrb = map(int, input().split())
    XL = [0] * N
    YU = [0] * N
    XR = [0] * N
    YD = [0] * N
    for i in range(N):
        XL[i], YU[i], XR[i], YD[i] = map(int, input().split())

    d = [float('inf')] * (xrb + 1)
    
    for x in range(xlb, xrb + 1):
        for i in range(N):
            if XL[i] <= x <= XR[i]:
                d[x] = min(d[x],i)

    ans = [0] * N
    for x in range(xlb, xrb + 1):
        if d[x] != float('inf'):
            ans[d[x]] = 1

    for i in range(N):
        print(ans[i])




    

    



if __name__ == "__main__":
    main()
0