結果
| 問題 | No.1101 鼻水 | 
| コンテスト | |
| ユーザー |  H20 | 
| 提出日時 | 2021-03-26 11:22:01 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 42 ms / 2,000 ms | 
| コード長 | 350 bytes | 
| コンパイル時間 | 156 ms | 
| コンパイル使用メモリ | 82,496 KB | 
| 実行使用メモリ | 52,096 KB | 
| 最終ジャッジ日時 | 2024-11-27 22:52:08 | 
| 合計ジャッジ時間 | 2,136 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
V, T, P = map(int, input().split())
def is_ok(time):
    # 整数を買えればTrueを返す
    return time-V*P-(time-1)//T <= V
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(10**20 + 1, 0)+1)
            
            
            
        