結果

問題 No.477 MVP
ユーザー mokraimokrai
提出日時 2017-11-13 00:45:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 22 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 9,236 KB
最終ジャッジ日時 2023-08-16 11:05:57
合計ジャッジ時間 1,659 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
9,068 KB
testcase_01 AC 21 ms
9,064 KB
testcase_02 AC 21 ms
9,052 KB
testcase_03 AC 21 ms
8,952 KB
testcase_04 AC 22 ms
9,148 KB
testcase_05 AC 22 ms
9,056 KB
testcase_06 AC 21 ms
9,064 KB
testcase_07 AC 22 ms
9,212 KB
testcase_08 AC 22 ms
9,068 KB
testcase_09 AC 21 ms
9,024 KB
testcase_10 AC 21 ms
9,236 KB
testcase_11 AC 21 ms
8,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
import math

def main():
    N, K = map(Decimal, input().split())
    if N % (K + 1) == 0:
        print(int(N/(K + 1)) + 1)
    else: 
        print(math.ceil(N/(K + 1)))

if __name__ == '__main__':
    main()
0