結果

問題 No.2559 眩しい数直線
ユーザー 👑 KazunKazun
提出日時 2024-01-21 00:48:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 73,520 KB
最終ジャッジ日時 2024-01-21 00:48:36
合計ジャッジ時間 3,055 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 37 ms
53,460 KB
testcase_02 AC 38 ms
53,460 KB
testcase_03 AC 64 ms
63,904 KB
testcase_04 AC 51 ms
63,896 KB
testcase_05 AC 54 ms
66,208 KB
testcase_06 AC 71 ms
73,520 KB
testcase_07 AC 63 ms
70,316 KB
testcase_08 AC 64 ms
70,316 KB
testcase_09 AC 60 ms
68,256 KB
testcase_10 AC 53 ms
63,896 KB
testcase_11 AC 46 ms
61,832 KB
testcase_12 AC 47 ms
61,848 KB
testcase_13 AC 66 ms
72,352 KB
testcase_14 AC 66 ms
72,232 KB
testcase_15 AC 69 ms
72,996 KB
testcase_16 AC 49 ms
64,160 KB
testcase_17 AC 61 ms
70,316 KB
testcase_18 AC 51 ms
63,896 KB
testcase_19 AC 68 ms
72,352 KB
testcase_20 AC 57 ms
66,080 KB
testcase_21 AC 50 ms
64,160 KB
testcase_22 AC 64 ms
70,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N, X = map(int, input().split())

    A = [0] * N; B = [0] * N
    for i in range(N):
        A[i], B[i] = map(int, input().split())

    return [max(max([B[i] - abs(j - A[i]) for i in range(N)]), 0) for j in range(1, X + 1)]

#==================================================
print(*solve())
0