結果

問題 No.2559 眩しい数直線
ユーザー poeMoonpoeMoon
提出日時 2023-12-02 17:47:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 627 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 66,652 KB
最終ジャッジ日時 2023-12-02 17:47:22
合計ジャッジ時間 2,514 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,332 KB
testcase_01 AC 36 ms
53,332 KB
testcase_02 AC 36 ms
53,332 KB
testcase_03 AC 48 ms
61,584 KB
testcase_04 AC 49 ms
61,720 KB
testcase_05 AC 55 ms
66,648 KB
testcase_06 AC 62 ms
66,648 KB
testcase_07 AC 60 ms
66,648 KB
testcase_08 AC 57 ms
66,652 KB
testcase_09 AC 57 ms
66,648 KB
testcase_10 AC 58 ms
66,652 KB
testcase_11 AC 41 ms
59,508 KB
testcase_12 AC 50 ms
64,596 KB
testcase_13 AC 58 ms
66,648 KB
testcase_14 AC 57 ms
66,648 KB
testcase_15 AC 58 ms
66,648 KB
testcase_16 AC 45 ms
61,592 KB
testcase_17 AC 57 ms
66,648 KB
testcase_18 AC 49 ms
61,720 KB
testcase_19 AC 60 ms
66,648 KB
testcase_20 AC 56 ms
66,648 KB
testcase_21 AC 46 ms
61,720 KB
testcase_22 AC 59 ms
66,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, X = map(int, input().split())
L = [0 for i in range(X)]
for _ in range(N):
    A, B = map(int, input().split())
    A -= 1
    for i in range(X):
        L[i] = max(L[i], B - abs(i - A))
print(" ".join(map(str, L)))
0