結果
問題 |
No.1101 鼻水
|
ユーザー |
![]() |
提出日時 | 2021-03-26 11:19:40 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 346 bytes |
コンパイル時間 | 824 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-11-27 22:50:24 |
合計ジャッジ時間 | 2,291 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 12 |
ソースコード
V, T, P = map(int, input().split()) def is_ok(time): # 整数を買えればTrueを返す return time-V*P-time//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)