python 2811: 救援 摘要:参考代码:import math n = int(input()) x1, y1 = 0, 0 pace = 50 time = 0 for i in range(n): xn, …… 题解列表 2024年03月13日 0 点赞 0 评论 907 浏览 评分:9.9
python 2810: 鸡尾酒疗法 摘要:解题思路:有效率 = 有效的病例数 / 总病例数参考代码:n = int(input()) for i in range(n): arr = list(map(int, input().s…… 题解列表 2024年03月13日 0 点赞 0 评论 624 浏览 评分:9.9
python 2809: 菲波那契数列 摘要:参考代码:k = int(input()) arr = [0 for _ in range(1, 47)] arr[0], arr[1] = 1,1 for i in range(2, len(…… 题解列表 2024年03月13日 0 点赞 0 评论 573 浏览 评分:0.0
python 2808: 买房子 摘要:注意事项:第一年200万,从第二年开始循环计算。参考代码:N, K = map(int, input().split()) money = 200 amount = N year = 1 wh…… 题解列表 2024年03月13日 0 点赞 0 评论 682 浏览 评分:0.0
python 编写题解 2807 摘要:参考代码:R, M, Y = map(int, input().split()) for _ in range(Y): M += M * (R * 0.01) print("%.d" %…… 题解列表 2024年03月13日 0 点赞 0 评论 614 浏览 评分:9.9
python 2806: 人口增长问题 摘要:参考代码:x, n = map(int, input().split()) for _ in range(n): x += x * 0.001 print("%.4f" %x)…… 题解列表 2024年03月13日 0 点赞 0 评论 786 浏览 评分:0.0
python 2805: 乘方计算 注意事项:参考代码:a,n=map(int,input().split())print(a**n) 题解列表 2024年03月13日 0 点赞 0 评论 651 浏览 评分:6.0
python 2804: 与指定数字相同的数的个数 摘要:参考代码:n, m = map(int, input().split()) arr = list(map(int, input().split())) print(arr.count(m))…… 题解列表 2024年03月13日 0 点赞 0 评论 650 浏览 评分:0.0
判断是否为两位数 解题思路:注意事项:参考代码:n=int(input())if10<=n<=99:print(1)else:print(0) 题解列表 2024年03月13日 0 点赞 0 评论 638 浏览 评分:2.0
三位数反转 摘要:解题思路:注意事项:参考代码:while True: try: num = int(input()) a = num % 10 b=num//10%10…… 题解列表 2024年03月12日 0 点赞 0 评论 729 浏览 评分:0.0