题解列表

筛选

海伦公式秒杀

摘要:解题思路:注意事项:参考代码:import mathnum=list(map(float,input().split()))a=math.sqrt((num[3] - num[1]) ** 2 + (……

不废话直接秒

摘要:解题思路:floor函数向下取整注意事项:参考代码:import mathn,x,y=map(int,input().split())print(math.floor(n-1/x*y))……

三行秒杀大象喝水

摘要:解题思路:map函数接收输入注意事项:至少喝几桶水用向上取整参考代码:import mathh,r=map(int,input().split())print(math.ceil(20000/(h*m……

解释很清晰的复杂思路(Python)

摘要:解题思路:(1)输入ISBN号码字符串string(2)根据数字Ascll码的范围分批将9位数字和1位识别码按列表和字符串存储(3)对存储9位数字的列表元素整数化处理,按照规则对元素计算加权和(4)对……

调用函数及封装性解题

摘要:解题思路:def f(a):    b=(a%10)*5    a=a//10    if (a-b)%17==0:        print("1")    else:print("0")while……

遍历每条对角线

摘要:# # 遍历每条对角线 m,n = map(int,input().split()) #m行n列 ans = 0 arr = [] for _ in ra……

不懂可评论

摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) deter=b*b-4*a*c x1=(-b+deter**0.5)/2*a x2=(-b-deter……