結果

問題 No.1101 鼻水
ユーザー FromBooskaFromBooska
提出日時 2023-09-12 21:25:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 1,497 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 71,648 KB
最終ジャッジ日時 2023-09-12 21:25:27
合計ジャッジ時間 3,843 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,280 KB
testcase_01 AC 73 ms
71,192 KB
testcase_02 AC 73 ms
71,452 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 73 ms
71,272 KB
testcase_07 WA -
testcase_08 AC 73 ms
71,076 KB
testcase_09 WA -
testcase_10 AC 72 ms
71,404 KB
testcase_11 WA -
testcase_12 AC 73 ms
71,544 KB
testcase_13 WA -
testcase_14 AC 73 ms
71,448 KB
testcase_15 WA -
testcase_16 AC 73 ms
71,248 KB
testcase_17 WA -
testcase_18 AC 74 ms
71,252 KB
testcase_19 WA -
testcase_20 AC 72 ms
71,212 KB
testcase_21 WA -
testcase_22 AC 72 ms
71,276 KB
testcase_23 WA -
testcase_24 AC 73 ms
71,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 時間で解決め打ち二分探索できるか

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

def check(t):
    v = 0
    v += V
    v += V*P
    v += (t-1)//T+1
    if v >= t:
        return 1
    else:
        return 0
    
#for t in range(0, 30):
#    print(t, check(t))
    
OK = 0
NG = 10**20
while NG-OK>1:
    mid = (NG+OK)//2
    if check(mid) == 1:
        OK = mid
    else:
        NG = mid
print(OK)
0