結果
| 問題 | No.1090 ソーシャルディスタンス / Social Distance |
| ユーザー |
|
| 提出日時 | 2020-10-04 17:36:54 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 278 bytes |
| 記録 | |
| コンパイル時間 | 900 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 25,452 KB |
| 最終ジャッジ日時 | 2024-07-19 17:32:55 |
| 合計ジャッジ時間 | 9,172 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 3 TLE * 2 -- * 18 |
ソースコード
N, D = map(int,input().split())
l = list(map(int, input().split()))
nowp = 0
suml = 0
ans = "0 "
for l_i in l:
suml += l_i
if suml - nowp < D:
nowp += D
ans += (str(nowp) + " ")
else:
nowp = suml
ans += (str(nowp) + " ")
print(ans)