結果
| 問題 | No.1090 ソーシャルディスタンス / Social Distance |
| ユーザー |
|
| 提出日時 | 2020-06-24 03:08:49 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 189 bytes |
| 記録 | |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 103,808 KB |
| 最終ジャッジ日時 | 2026-03-25 03:25:23 |
| 合計ジャッジ時間 | 2,356 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 13 WA * 10 |
ソースコード
N, D = map(int, input().split())
a = list(map(int, input().split()))
ans = [0]
for ai in a:
if ai-ans[-1]<D:
ans.append(ans[-1]+D)
else:
ans.append(ai)
print(*ans)