結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー GrayCoderGrayCoder
提出日時 2018-04-28 14:38:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 354 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 11,028 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-09-10 07:47:46
合計ジャッジ時間 1,551 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,860 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 16 ms
7,796 KB
testcase_08 AC 16 ms
7,992 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,800 KB
testcase_11 AC 16 ms
7,824 KB
testcase_12 AC 16 ms
7,884 KB
testcase_13 AC 16 ms
7,884 KB
testcase_14 AC 17 ms
7,948 KB
testcase_15 WA -
testcase_16 AC 16 ms
7,800 KB
testcase_17 AC 16 ms
7,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N, LB, RB = map(int, input().split())
    X = tuple(tuple(map(int, input().split() + [i])) for i, _ in  enumerate([0] * N))

    width = [None] * 1681
    for l, _, r, _, i in sorted(X, key=lambda x: x[1]):
        width[l:r+1] = [i] * (r - l + 1)
    ans = set(width[LB:RB+1])
    for i in range(N):
        print(int(i in ans))

main()
0