結果
| 問題 |
No.1101 鼻水
|
| コンテスト | |
| ユーザー |
marcypy
|
| 提出日時 | 2021-06-02 06:31:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 291 bytes |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 82,328 KB |
| 実行使用メモリ | 53,488 KB |
| 最終ジャッジ日時 | 2024-11-14 03:57:59 |
| 合計ジャッジ時間 | 1,972 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
v,t,p=map(int,input().split())
#条件
def is_ok(time):
return (p+1)*v + (time-1)//t<time
def meguru_bisect(ng,ok):
while abs(ng-ok)>1:
mid=(ng+ok)//2
if is_ok(mid):
ok=mid
else:
ng=mid
return ok
print(meguru_bisect(0,10**50))
marcypy