結果

問題 No.1101 鼻水
ユーザー moshi777moshi777
提出日時 2021-06-16 17:19:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 71,528 KB
最終ジャッジ日時 2023-08-29 05:49:19
合計ジャッジ時間 3,330 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,260 KB
testcase_01 AC 72 ms
71,264 KB
testcase_02 AC 71 ms
71,132 KB
testcase_03 AC 76 ms
71,144 KB
testcase_04 AC 73 ms
71,420 KB
testcase_05 AC 73 ms
71,468 KB
testcase_06 AC 72 ms
71,312 KB
testcase_07 AC 74 ms
71,156 KB
testcase_08 AC 72 ms
71,032 KB
testcase_09 AC 72 ms
71,036 KB
testcase_10 AC 75 ms
71,316 KB
testcase_11 AC 77 ms
71,184 KB
testcase_12 AC 78 ms
71,284 KB
testcase_13 AC 76 ms
71,412 KB
testcase_14 AC 78 ms
71,260 KB
testcase_15 AC 74 ms
71,288 KB
testcase_16 AC 72 ms
71,132 KB
testcase_17 AC 79 ms
70,980 KB
testcase_18 AC 75 ms
71,232 KB
testcase_19 AC 72 ms
71,280 KB
testcase_20 AC 73 ms
71,296 KB
testcase_21 AC 73 ms
71,296 KB
testcase_22 AC 74 ms
71,400 KB
testcase_23 AC 76 ms
71,032 KB
testcase_24 AC 75 ms
71,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

V, T, P = map(int, input().split())


def is_ok(time):
    return (P+1) * V + (time-1)//T+1 <= time


def meguru_bisect(ng, ok):
    while (abs(ok - ng) > 1):
        mid = (ok + ng) // 2
        if is_ok(mid):
            ok = mid
        else:
            ng = mid
    return ok


print(meguru_bisect(0, 10**50))
0