結果
| 問題 | No.1101 鼻水 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-07-03 23:14:24 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 40 ms / 2,000 ms | 
| コード長 | 422 bytes | 
| コンパイル時間 | 160 ms | 
| コンパイル使用メモリ | 82,376 KB | 
| 実行使用メモリ | 55,432 KB | 
| 最終ジャッジ日時 | 2024-09-17 04:53:03 | 
| 合計ジャッジ時間 | 1,801 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
import sys
input = sys.stdin.readline
from collections import *
def judge(x):
    if x%T==0:
        return x-(x-1)//T-V*P<=V
    else:
        return x-x//T-V*P<=V
        
def binary_search():
    l, r = 0, 10**20
    
    while l<=r:
        m = (l+r)//2
        
        if judge(m):
            l = m+1
        else:
            r = m-1
    
    return r
V, T, P = map(int, input().split())
print(binary_search()+1)
            
            
            
        