結果

問題 No.2559 眩しい数直線
ユーザー くきみかんくきみかん
提出日時 2023-12-02 14:46:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 441 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 28,032 KB
最終ジャッジ日時 2024-09-26 17:21:25
合計ジャッジ時間 5,371 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,624 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 AC 87 ms
13,312 KB
testcase_04 AC 89 ms
13,312 KB
testcase_05 AC 127 ms
15,360 KB
testcase_06 AC 426 ms
28,032 KB
testcase_07 AC 287 ms
23,424 KB
testcase_08 AC 248 ms
22,656 KB
testcase_09 AC 234 ms
19,200 KB
testcase_10 AC 96 ms
14,336 KB
testcase_11 AC 30 ms
10,624 KB
testcase_12 AC 47 ms
11,520 KB
testcase_13 AC 376 ms
23,808 KB
testcase_14 AC 329 ms
24,576 KB
testcase_15 AC 441 ms
27,520 KB
testcase_16 AC 37 ms
11,008 KB
testcase_17 AC 236 ms
21,632 KB
testcase_18 AC 93 ms
13,312 KB
testcase_19 AC 385 ms
24,960 KB
testcase_20 AC 154 ms
17,152 KB
testcase_21 AC 50 ms
11,648 KB
testcase_22 AC 288 ms
22,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,x = map(int, input().split())
sta = [[0] for _ in range(x)]
for i in range(n):
    a,b = map(int, input().split())
    for j in range(x):
        if b-abs(a-j-1) > 0:
            sta[j].append(b-abs(a-j-1))
print(*[max(i) for i in sta])
0