結果

問題 No.2559 眩しい数直線
ユーザー navel_tosnavel_tos
提出日時 2023-12-02 14:37:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 67,072 KB
最終ジャッジ日時 2024-09-26 16:58:34
合計ジャッジ時間 2,317 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
51,840 KB
testcase_01 AC 42 ms
51,456 KB
testcase_02 AC 39 ms
51,840 KB
testcase_03 AC 54 ms
61,568 KB
testcase_04 AC 58 ms
62,592 KB
testcase_05 AC 64 ms
65,536 KB
testcase_06 AC 72 ms
66,560 KB
testcase_07 AC 65 ms
66,432 KB
testcase_08 AC 68 ms
65,792 KB
testcase_09 AC 68 ms
66,432 KB
testcase_10 AC 64 ms
65,664 KB
testcase_11 AC 48 ms
59,136 KB
testcase_12 AC 55 ms
63,488 KB
testcase_13 AC 69 ms
66,944 KB
testcase_14 AC 72 ms
66,304 KB
testcase_15 AC 69 ms
66,816 KB
testcase_16 AC 54 ms
61,696 KB
testcase_17 AC 67 ms
66,304 KB
testcase_18 AC 56 ms
62,336 KB
testcase_19 AC 72 ms
67,072 KB
testcase_20 AC 64 ms
65,792 KB
testcase_21 AC 54 ms
62,208 KB
testcase_22 AC 67 ms
66,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#緑以下C

N,X = map(int,input().split())
Light = [0]*(X+1)
Q = []
for _ in range(N):
    a,b = map(int,input().split())
    for x in range(1,X+1):
        Light[x] = max(Light[x], b-abs(x-a))
print(*Light[1:])
0