結果

問題 No.415 ぴょん
ユーザー tomatonosuke
提出日時 2016-08-26 23:14:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 228 bytes
コンパイル時間 682 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,316 KB
最終ジャッジ日時 2024-11-08 09:47:24
合計ジャッジ時間 3,147 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 TLE * 1 -- * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

steps,width = (int(n) for n in input().split(' '))
rest = 0
ans = 0
while True:
    ans += (steps - 1 - rest) // width
    rest = (width - (steps % width) + rest) % width
    if rest == 0:
        break
    ans += 1
print(ans)

0