結果

問題 No.2559 眩しい数直線
ユーザー くきみかんくきみかん
提出日時 2023-12-02 14:46:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 354 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 727 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 27,392 KB
最終ジャッジ日時 2023-12-02 14:46:45
合計ジャッジ時間 4,917 ms
ジャッジサーバーID
(参考情報)
judge14 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,856 KB
testcase_01 AC 25 ms
9,856 KB
testcase_02 AC 24 ms
9,856 KB
testcase_03 AC 69 ms
12,672 KB
testcase_04 AC 76 ms
12,800 KB
testcase_05 AC 105 ms
14,848 KB
testcase_06 AC 354 ms
27,392 KB
testcase_07 AC 247 ms
22,528 KB
testcase_08 AC 210 ms
22,016 KB
testcase_09 AC 197 ms
18,560 KB
testcase_10 AC 77 ms
13,568 KB
testcase_11 AC 26 ms
9,984 KB
testcase_12 AC 39 ms
10,880 KB
testcase_13 AC 306 ms
23,168 KB
testcase_14 AC 274 ms
23,936 KB
testcase_15 AC 348 ms
27,136 KB
testcase_16 AC 31 ms
10,368 KB
testcase_17 AC 214 ms
20,992 KB
testcase_18 AC 77 ms
12,672 KB
testcase_19 AC 325 ms
24,192 KB
testcase_20 AC 128 ms
16,512 KB
testcase_21 AC 43 ms
11,008 KB
testcase_22 AC 232 ms
21,760 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