結果

問題 No.2559 眩しい数直線
ユーザー LucagonLucagon
提出日時 2023-12-02 14:42:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 176 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 68,716 KB
最終ジャッジ日時 2023-12-02 14:42:50
合計ジャッジ時間 2,074 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
53,332 KB
testcase_01 AC 33 ms
53,332 KB
testcase_02 AC 33 ms
53,332 KB
testcase_03 AC 45 ms
61,588 KB
testcase_04 AC 49 ms
63,776 KB
testcase_05 AC 53 ms
66,652 KB
testcase_06 AC 59 ms
66,652 KB
testcase_07 AC 52 ms
66,652 KB
testcase_08 AC 53 ms
66,656 KB
testcase_09 AC 58 ms
66,652 KB
testcase_10 AC 51 ms
66,656 KB
testcase_11 AC 42 ms
59,508 KB
testcase_12 AC 43 ms
64,596 KB
testcase_13 AC 54 ms
68,716 KB
testcase_14 AC 54 ms
66,652 KB
testcase_15 AC 56 ms
66,652 KB
testcase_16 AC 46 ms
61,976 KB
testcase_17 AC 53 ms
66,652 KB
testcase_18 AC 47 ms
64,032 KB
testcase_19 AC 59 ms
66,652 KB
testcase_20 AC 56 ms
66,652 KB
testcase_21 AC 47 ms
64,040 KB
testcase_22 AC 60 ms
66,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x = map(int,input().split())
l = [0]*x

for i in range(n):
    a,b = map(int,input().split())
    for j in range(x):
        l[j] = max(l[j], b - abs(j - (a - 1)))

print(*l)
0