結果

問題 No.477 MVP
ユーザー fV9TwBhUoa9S3eVfV9TwBhUoa9S3eV
提出日時 2019-10-07 15:20:39
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 21 ms / 1,000 ms
コード長 185 bytes
コンパイル時間 759 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 9,184 KB
最終ジャッジ日時 2023-08-03 09:34:03
合計ジャッジ時間 1,380 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,980 KB
testcase_01 AC 20 ms
9,052 KB
testcase_02 AC 20 ms
9,024 KB
testcase_03 AC 21 ms
9,164 KB
testcase_04 AC 20 ms
9,184 KB
testcase_05 AC 20 ms
8,972 KB
testcase_06 AC 21 ms
9,024 KB
testcase_07 AC 20 ms
8,972 KB
testcase_08 AC 21 ms
9,028 KB
testcase_09 AC 21 ms
9,160 KB
testcase_10 AC 20 ms
9,112 KB
testcase_11 AC 20 ms
9,164 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