結果

問題 No.1090 ソーシャルディスタンス / Social Distance
ユーザー kikage
提出日時 2021-08-16 18:25:09
言語 Python3
(3.14.2 + numpy 2.4.0 + scipy 1.16.3)
結果
TLE  
実行時間 -
コード長 225 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 149 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 23,508 KB
最終ジャッジ日時 2024-10-09 15:46:59
合計ジャッジ時間 4,487 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other TLE * 1 -- * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N,D=map(int,input().split())
a=[0]+list(map(int,input().split()))
x=[sum(a[:i+1]) for i in range(N)]
print("0",end="") #0番
for i in range(1,N):
    x[i]=max(x[i-1]+D,x[i])
    print(" "+str(x[i]),end="") #1~N-1番
print("")
0