結果

問題 No.477 MVP
ユーザー kawacchukawacchu
提出日時 2019-10-08 22:39:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 188 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 9,200 KB
最終ジャッジ日時 2023-08-07 15:30:23
合計ジャッジ時間 1,275 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
9,164 KB
testcase_01 AC 19 ms
9,172 KB
testcase_02 AC 19 ms
8,996 KB
testcase_03 AC 18 ms
9,168 KB
testcase_04 AC 19 ms
9,000 KB
testcase_05 AC 18 ms
8,996 KB
testcase_06 AC 19 ms
9,144 KB
testcase_07 AC 19 ms
9,172 KB
testcase_08 AC 19 ms
9,200 KB
testcase_09 AC 19 ms
8,996 KB
testcase_10 AC 19 ms
9,172 KB
testcase_11 AC 19 ms
9,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import ceil
from decimal import Decimal
N,K = map(int,input().split())
N = Decimal(N)
K = Decimal(K)

if N % (K+1) == 0 :
    print(N//(K+1) + 1)
else :
    print(ceil(N/(K+1)))
0