結果

問題 No.1101 鼻水
ユーザー FromBooskaFromBooska
提出日時 2023-09-13 13:34:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 408 bytes
コンパイル時間 671 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 71,360 KB
最終ジャッジ日時 2023-09-13 13:34:50
合計ジャッジ時間 3,491 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,272 KB
testcase_01 AC 71 ms
71,228 KB
testcase_02 AC 73 ms
70,940 KB
testcase_03 AC 76 ms
71,080 KB
testcase_04 AC 71 ms
70,996 KB
testcase_05 AC 71 ms
71,272 KB
testcase_06 AC 71 ms
71,272 KB
testcase_07 AC 70 ms
71,272 KB
testcase_08 AC 70 ms
71,164 KB
testcase_09 AC 70 ms
71,244 KB
testcase_10 AC 70 ms
71,040 KB
testcase_11 AC 71 ms
71,224 KB
testcase_12 AC 78 ms
71,152 KB
testcase_13 AC 72 ms
71,080 KB
testcase_14 AC 70 ms
71,124 KB
testcase_15 AC 70 ms
71,092 KB
testcase_16 AC 71 ms
71,044 KB
testcase_17 AC 71 ms
71,064 KB
testcase_18 AC 70 ms
71,180 KB
testcase_19 AC 70 ms
71,244 KB
testcase_20 AC 69 ms
71,164 KB
testcase_21 AC 71 ms
71,284 KB
testcase_22 AC 69 ms
70,996 KB
testcase_23 AC 76 ms
71,360 KB
testcase_24 AC 70 ms
71,112 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(NG)
0