結果

問題 No.2559 眩しい数直線
ユーザー navel_tosnavel_tos
提出日時 2023-12-02 14:37:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 739 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 66,648 KB
最終ジャッジ日時 2023-12-02 14:37:20
合計ジャッジ時間 2,492 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 37 ms
53,332 KB
testcase_02 AC 38 ms
53,332 KB
testcase_03 AC 50 ms
61,580 KB
testcase_04 AC 52 ms
63,772 KB
testcase_05 AC 57 ms
66,644 KB
testcase_06 AC 64 ms
66,648 KB
testcase_07 AC 59 ms
66,644 KB
testcase_08 AC 58 ms
66,648 KB
testcase_09 AC 61 ms
66,644 KB
testcase_10 AC 57 ms
66,648 KB
testcase_11 AC 45 ms
59,504 KB
testcase_12 AC 50 ms
64,592 KB
testcase_13 AC 63 ms
66,648 KB
testcase_14 AC 61 ms
66,644 KB
testcase_15 AC 61 ms
66,644 KB
testcase_16 AC 50 ms
61,972 KB
testcase_17 AC 61 ms
66,644 KB
testcase_18 AC 52 ms
64,028 KB
testcase_19 AC 64 ms
66,644 KB
testcase_20 AC 58 ms
66,644 KB
testcase_21 AC 51 ms
64,036 KB
testcase_22 AC 62 ms
66,644 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