結果

問題 No.1101 鼻水
ユーザー moshi777moshi777
提出日時 2021-06-16 17:07:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 336 bytes
コンパイル時間 2,411 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 71,552 KB
最終ジャッジ日時 2023-08-29 04:20:50
合計ジャッジ時間 4,310 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,068 KB
testcase_01 AC 76 ms
71,136 KB
testcase_02 AC 79 ms
71,420 KB
testcase_03 AC 76 ms
71,540 KB
testcase_04 AC 76 ms
71,300 KB
testcase_05 AC 75 ms
71,420 KB
testcase_06 AC 75 ms
71,496 KB
testcase_07 AC 75 ms
71,200 KB
testcase_08 AC 77 ms
71,224 KB
testcase_09 AC 75 ms
71,428 KB
testcase_10 AC 75 ms
71,128 KB
testcase_11 AC 76 ms
71,128 KB
testcase_12 AC 77 ms
71,284 KB
testcase_13 AC 75 ms
71,324 KB
testcase_14 AC 73 ms
71,548 KB
testcase_15 AC 73 ms
71,160 KB
testcase_16 AC 74 ms
71,484 KB
testcase_17 AC 74 ms
71,384 KB
testcase_18 AC 76 ms
71,424 KB
testcase_19 AC 77 ms
71,424 KB
testcase_20 AC 75 ms
71,336 KB
testcase_21 AC 76 ms
71,464 KB
testcase_22 AC 76 ms
71,284 KB
testcase_23 AC 76 ms
71,204 KB
testcase_24 AC 75 ms
71,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

def is_ok(time):
    # 許容範囲ならTrue
    return (P+1) * V + (time-1)//T < 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