結果
問題 |
No.1090 ソーシャルディスタンス / Social Distance
|
ユーザー |
![]() |
提出日時 | 2020-08-19 22:40:08 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 211 bytes |
コンパイル時間 | 816 ms |
コンパイル使用メモリ | 82,300 KB |
実行使用メモリ | 93,684 KB |
最終ジャッジ日時 | 2024-10-12 07:45:53 |
合計ジャッジ時間 | 3,347 ms |
ジャッジサーバーID (参考情報) |
judge2 / 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] = lst[i+1] + D-abs(lst[i+1]-lst[i]) print(*lst)