結果

問題 No.1090 ソーシャルディスタンス / Social Distance
ユーザー syunsukesyunsuke
提出日時 2020-11-02 21:47:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 101,776 KB
最終ジャッジ日時 2023-09-29 13:49:40
合計ジャッジ時間 4,493 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
71,124 KB
testcase_01 AC 60 ms
71,304 KB
testcase_02 AC 87 ms
92,268 KB
testcase_03 AC 69 ms
76,924 KB
testcase_04 AC 91 ms
95,112 KB
testcase_05 AC 69 ms
76,816 KB
testcase_06 AC 112 ms
98,208 KB
testcase_07 AC 92 ms
87,064 KB
testcase_08 AC 110 ms
101,084 KB
testcase_09 AC 85 ms
87,584 KB
testcase_10 AC 91 ms
90,872 KB
testcase_11 AC 101 ms
101,424 KB
testcase_12 AC 84 ms
88,336 KB
testcase_13 AC 84 ms
88,360 KB
testcase_14 AC 94 ms
98,456 KB
testcase_15 AC 92 ms
93,112 KB
testcase_16 AC 77 ms
82,448 KB
testcase_17 AC 67 ms
77,080 KB
testcase_18 AC 79 ms
83,372 KB
testcase_19 AC 81 ms
86,248 KB
testcase_20 AC 79 ms
84,896 KB
testcase_21 AC 86 ms
88,840 KB
testcase_22 AC 57 ms
71,516 KB
testcase_23 AC 56 ms
71,180 KB
testcase_24 AC 99 ms
101,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,D=map(int,input().split())
L=[0]+list(map(int,input().split()))
P=[0]
for i in range(1,N):
    P.append(P[-1]+L[i])
#print(P)
for i in range(1,N):
    if P[i]-P[i-1]<D:
        P[i]=P[i-1]+D
print(*P)
0