結果
| 問題 | No.1090 ソーシャルディスタンス / Social Distance |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-02-22 06:21:21 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 100 ms / 2,000 ms |
| コード長 | 479 bytes |
| 記録 | |
| コンパイル時間 | 1,322 ms |
| コンパイル使用メモリ | 82,164 KB |
| 実行使用メモリ | 99,260 KB |
| 最終ジャッジ日時 | 2026-02-22 06:21:41 |
| 合計ジャッジ時間 | 4,483 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
n, d = MI()
b = LI()
a = [0]
for i in range(n-1):
a.append(a[-1]+b[i])
for i in range(n-1):
if a[i+1] - a[i] < d:
a[i+1] = a[i]+d
print(*a)
r_ishida