题解 | 小红的函数最大值
小红的函数最大值
https://www.nowcoder.com/practice/ef7f1d579daa4d349abd120a70b708e8
import sys
import math
for line in sys.stdin:
nums=list(map(int,line.strip().split()))
#print(int(a[0]) + int(a[1]))
a= nums[0]
b= nums[1]
x= 1/(b*math.log(a))
max_value=math.log(x,a)-b*x
print(round(max_value,10))
#刷题#
安克创新 Anker公司福利 782人发布