题解列表
蓝桥杯基础练习VIP-龟兔赛跑预测-python
摘要:```
v1, v2, t, s, l = map(int, input().split())
s1, s2, tt = 0, 0, 0
flag = False
while s1 != l ……
蓝桥杯基础练习VIP-回形取数
摘要:```
m, n = map(int, input().split())
list = [list(map(int, input().split())) for i in range(m)]
l……
Python动态规划
摘要:解题思路:单纯用递归会超时,采用动态规划,状态转移方程就是递归方程,可以一步到位注意事项:从1开始计数,dp[0]没有用到参考代码:def sw_ap(s, n, a): # 用a替换s中n……
1954: 话费计算
摘要:解题思路:注意事项:参考代码:a = int(input())s = 50 + a*0.4print("{:.1f}".format(s))……
1152: C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)-题解(python)
摘要:解题思路:注意事项:参考代码:n = int(input())s = 1if n == 1: print("{:.6f}".format(s))else: for i in range(2……
1151: C语言训练-计算一个整数N的阶乘-题解(python)
摘要:解题思路:注意事项:参考代码:n = int(input())s = 1for i in range(1,n+1): s *= iprint(s)……
1173: 计算球体积-题解(python)
摘要:解题思路:注意事项:参考代码:import mathwhile True: r = float(input()) p = math.pi v = (4/3)*p*(r**3) ……
编写题解 1223: 敲七游戏
摘要:解题思路:注意事项:参考代码:s = int(input())
count = 0
for i in range(1,s+1):
if i%7==0 or '7' in ……
1137: C语言训练-求函数值-题解(python)
摘要:解题思路:注意事项:参考代码:a = int(input())def func1(x): if x == 1: y = 10 print(y) else: ……