結果
| 問題 | No.1101 鼻水 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-05 12:36:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 82,428 KB |
| 実行使用メモリ | 53,572 KB |
| 最終ジャッジ日時 | 2024-09-22 08:33:44 |
| 合計ジャッジ時間 | 2,251 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
def judge(x):
if x%T==0:
return x//T*(T-1)+1<=(1+P)*V
else:
return x//T*(T-1)+x%T<=(1+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)