結果

問題 No.2559 眩しい数直線
ユーザー たろはちたろはち
提出日時 2023-12-02 15:54:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 70,640 KB
最終ジャッジ日時 2023-12-02 15:54:34
合計ジャッジ時間 2,904 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 37 ms
53,332 KB
testcase_02 AC 37 ms
53,332 KB
testcase_03 AC 53 ms
63,796 KB
testcase_04 AC 57 ms
63,804 KB
testcase_05 AC 59 ms
66,260 KB
testcase_06 AC 83 ms
70,636 KB
testcase_07 AC 84 ms
68,576 KB
testcase_08 AC 71 ms
70,640 KB
testcase_09 AC 65 ms
66,248 KB
testcase_10 AC 58 ms
66,132 KB
testcase_11 AC 46 ms
61,600 KB
testcase_12 AC 47 ms
61,848 KB
testcase_13 AC 71 ms
68,584 KB
testcase_14 AC 73 ms
70,640 KB
testcase_15 AC 77 ms
70,636 KB
testcase_16 AC 52 ms
64,060 KB
testcase_17 AC 72 ms
68,576 KB
testcase_18 AC 56 ms
63,804 KB
testcase_19 AC 80 ms
68,584 KB
testcase_20 AC 63 ms
66,380 KB
testcase_21 AC 54 ms
64,072 KB
testcase_22 AC 75 ms
68,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int, input().split())
c=[]
c = [list(map(int, input().split())) for _ in range(a)]
d=[0]*(b)
for i in range(a):
    for j in range(b):
        d[j]=max(c[i][1]-abs(j+1-c[i][0]),d[j])
print(*d)
0