結果
問題 | No.1101 鼻水 |
ユーザー | moshi777 |
提出日時 | 2021-06-16 16:52:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 437 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-12-30 20:16:53 |
合計ジャッジ時間 | 3,100 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 12 |
ソースコード
V, T, P = map(int, input().split())def is_ok(time):if time - (time//T+1) <= (P+1)*V:return Trueelse:return Falsedef meguru(ng, ok):while(abs(ng-ok) > 1):mid = (ng + ok) // 2if is_ok(mid):ok = midelse:ng = midreturn okprint(meguru(10**50, 0))