結果

問題 No.1090 ソーシャルディスタンス / Social Distance
ユーザー 37zigen37zigen
提出日時 2020-07-02 05:32:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 19,664 KB
最終ジャッジ日時 2023-10-12 17:20:56
合計ジャッジ時間 3,762 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,064 KB
testcase_01 AC 15 ms
7,956 KB
testcase_02 AC 96 ms
14,860 KB
testcase_03 AC 27 ms
9,104 KB
testcase_04 AC 110 ms
15,880 KB
testcase_05 AC 23 ms
8,892 KB
testcase_06 AC 129 ms
17,728 KB
testcase_07 AC 72 ms
13,076 KB
testcase_08 AC 133 ms
17,780 KB
testcase_09 AC 76 ms
13,456 KB
testcase_10 AC 93 ms
14,520 KB
testcase_11 AC 142 ms
18,376 KB
testcase_12 AC 79 ms
13,480 KB
testcase_13 AC 81 ms
13,504 KB
testcase_14 AC 126 ms
17,332 KB
testcase_15 AC 103 ms
15,212 KB
testcase_16 AC 54 ms
11,860 KB
testcase_17 AC 19 ms
8,484 KB
testcase_18 AC 56 ms
11,856 KB
testcase_19 AC 74 ms
13,476 KB
testcase_20 AC 66 ms
12,752 KB
testcase_21 AC 81 ms
13,628 KB
testcase_22 AC 15 ms
7,996 KB
testcase_23 AC 15 ms
8,068 KB
testcase_24 AC 141 ms
19,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
N,D=map(int,input().split())
a=[0]+[int(x) for x in input().split()]
a=list(itertools.accumulate(a))
for i in range(1,N):
    a[i]=max(a[i-1]+D,a[i])
print(*a)
0