結果

問題 No.1101 鼻水
ユーザー hedwig100
提出日時 2020-07-03 21:54:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-17 00:35:33
合計ジャッジ時間 1,925 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(10000000)
MOD = 10 ** 9 + 7
INF = 10 ** 15

def main():
    V,T,P = map(int,input().split())

    l = 0
    r = 10 ** 20
    while r - l > 1:
        mid = (r + l)//2
        if (mid - P*V - V)*T + 1 <= mid:
            l = mid
        else:
            r = mid
    print(r)
if __name__ == '__main__':
    main()
0