結果

問題 No.1090 ソーシャルディスタンス / Social Distance
ユーザー Konton7
提出日時 2020-06-26 21:33:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 178 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 20,712 KB
最終ジャッジ日時 2024-07-04 19:50:57
合計ジャッジ時間 3,219 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

n, d = [int(v) for v in input().split()]
a = [0] + [int(v) for v in input().split()]
for i in range(n):
    k = a[i + 1] - a[i]
    if a < d:
        a[i + 1] = a[i] + d
print(a)
0