結果

問題 No.477 MVP
ユーザー ohanaohana
提出日時 2023-10-20 11:03:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 174 bytes
コンパイル時間 939 ms
コンパイル使用メモリ 81,556 KB
実行使用メモリ 79,240 KB
最終ジャッジ日時 2023-10-20 11:03:48
合計ジャッジ時間 3,381 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
79,236 KB
testcase_01 AC 116 ms
79,236 KB
testcase_02 AC 117 ms
79,172 KB
testcase_03 AC 115 ms
79,176 KB
testcase_04 AC 114 ms
79,240 KB
testcase_05 AC 115 ms
79,172 KB
testcase_06 AC 137 ms
79,236 KB
testcase_07 AC 114 ms
79,236 KB
testcase_08 AC 117 ms
79,240 KB
testcase_09 AC 118 ms
79,232 KB
testcase_10 AC 116 ms
79,236 KB
testcase_11 AC 114 ms
79,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import decimal

n, m = map(decimal.Decimal, input().split())

if n / (m + 1) == n // (m + 1):
    print(n // (m + 1) + 1)
else:
    print(math.ceil(n / (m + 1)))
0