結果
| 問題 |
No.1090 ソーシャルディスタンス / Social Distance
|
| ユーザー |
|
| 提出日時 | 2020-07-04 22:54:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 304 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 82,076 KB |
| 実行使用メモリ | 101,480 KB |
| 最終ジャッジ日時 | 2024-09-19 14:48:12 |
| 合計ジャッジ時間 | 3,761 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 2 WA * 21 |
ソースコード
#!/usr/bin/env python3
N, D = map(int, input().split())
A = [0] + list(map(int, input().split()))
Move = [0 for i in range(N)]
M = 0
for i in range(1, N):
d = A[i] - A[i-1]
if d < D:
M += D-d
Move[i] = M
Ret = []
for i in range(N):
Ret.append(A[i]+Move[i])
print(*Ret)