結果

問題 No.477 MVP
ユーザー fV9TwBhUoa9S3eVfV9TwBhUoa9S3eV
提出日時 2019-10-07 15:20:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 185 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2024-04-21 08:12:28
合計ジャッジ時間 1,409 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
11,136 KB
testcase_01 AC 35 ms
11,136 KB
testcase_02 AC 35 ms
11,136 KB
testcase_03 AC 35 ms
11,264 KB
testcase_04 AC 34 ms
11,264 KB
testcase_05 AC 34 ms
11,136 KB
testcase_06 AC 35 ms
11,264 KB
testcase_07 AC 34 ms
11,392 KB
testcase_08 AC 37 ms
11,264 KB
testcase_09 AC 35 ms
11,392 KB
testcase_10 AC 34 ms
11,264 KB
testcase_11 AC 34 ms
11,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# No.477 MVP
from decimal import Decimal
import math

n, k = [int(s) for s in input().split()]
tmp = math.ceil(Decimal(n) / (Decimal(k + 1)))
print(tmp if n % (k + 1) != 0 else tmp + 1)
0