結果
問題 |
No.604 誕生日のお小遣い
|
ユーザー |
|
提出日時 | 2020-11-10 13:46:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 1,000 ms |
コード長 | 363 bytes |
コンパイル時間 | 590 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-07-22 17:29:32 |
合計ジャッジ時間 | 2,450 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
a, b, c = map(int,input().split()) def is_ok(x): p = x//a cnt = p*b cnt += x-p if cnt >= c: return True return False 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(0,10**18+1))