結果

問題 No.2559 眩しい数直線
ユーザー n_nan_na
提出日時 2024-01-01 10:11:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 70,788 KB
最終ジャッジ日時 2024-01-01 10:11:39
合計ジャッジ時間 2,724 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,332 KB
testcase_01 AC 35 ms
53,332 KB
testcase_02 AC 35 ms
53,332 KB
testcase_03 AC 53 ms
63,788 KB
testcase_04 AC 55 ms
65,852 KB
testcase_05 AC 60 ms
68,720 KB
testcase_06 AC 73 ms
68,720 KB
testcase_07 AC 63 ms
68,720 KB
testcase_08 AC 63 ms
68,720 KB
testcase_09 AC 69 ms
68,720 KB
testcase_10 AC 61 ms
68,720 KB
testcase_11 AC 42 ms
59,472 KB
testcase_12 AC 50 ms
64,592 KB
testcase_13 AC 67 ms
70,788 KB
testcase_14 AC 66 ms
68,720 KB
testcase_15 AC 68 ms
68,720 KB
testcase_16 AC 53 ms
63,920 KB
testcase_17 AC 63 ms
68,720 KB
testcase_18 AC 56 ms
65,980 KB
testcase_19 AC 67 ms
68,720 KB
testcase_20 AC 62 ms
68,720 KB
testcase_21 AC 53 ms
65,984 KB
testcase_22 AC 65 ms
68,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,X = map(int,input().split())

L = [0]*X
for _ in range(N):
    a,b = map(int,input().split())
    for j in range(X):
        l = max(b - abs(a-1 - j), 0)
        L[j] = max(L[j], l)
    
print(*L)
0