結果
| 問題 |
No.1090 ソーシャルディスタンス / Social Distance
|
| ユーザー |
t N
|
| 提出日時 | 2020-08-19 22:34:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 205 bytes |
| コンパイル時間 | 459 ms |
| コンパイル使用メモリ | 82,060 KB |
| 実行使用メモリ | 93,220 KB |
| 最終ジャッジ日時 | 2024-10-12 07:29:06 |
| 合計ジャッジ時間 | 4,124 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 23 |
ソースコード
N,D = map(int,input().split())
lst = list(map(int,input().split()))
for i in range(len(lst)-1):
if lst[i+1]-lst[i] > D:
pass
else:
lst[i+1] += D-lst[i+1]-lst[i]
print(*lst)
t N