結果

問題 No.2559 眩しい数直線
ユーザー miztommiztom
提出日時 2024-03-15 13:01:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 74,960 KB
最終ジャッジ日時 2024-03-15 13:01:06
合計ジャッジ時間 3,582 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,332 KB
testcase_01 AC 35 ms
53,332 KB
testcase_02 AC 37 ms
53,332 KB
testcase_03 AC 64 ms
65,584 KB
testcase_04 AC 54 ms
65,600 KB
testcase_05 AC 59 ms
67,780 KB
testcase_06 AC 76 ms
74,948 KB
testcase_07 AC 69 ms
73,044 KB
testcase_08 AC 68 ms
72,392 KB
testcase_09 AC 63 ms
71,892 KB
testcase_10 AC 56 ms
67,652 KB
testcase_11 AC 53 ms
59,260 KB
testcase_12 AC 49 ms
63,524 KB
testcase_13 AC 75 ms
74,960 KB
testcase_14 AC 71 ms
73,160 KB
testcase_15 AC 76 ms
74,948 KB
testcase_16 AC 60 ms
63,668 KB
testcase_17 AC 67 ms
71,876 KB
testcase_18 AC 54 ms
65,728 KB
testcase_19 AC 74 ms
74,948 KB
testcase_20 AC 61 ms
69,832 KB
testcase_21 AC 52 ms
65,732 KB
testcase_22 AC 66 ms
72,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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