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 评论 242 浏览 评分:0.0
python 2808: 买房子 摘要:注意事项:第一年200万,从第二年开始循环计算。参考代码:N, K = map(int, input().split()) money = 200 amount = N year = 1 wh…… 题解列表 2024年03月13日 0 点赞 0 评论 290 浏览 评分: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 评论 208 浏览 评分: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 评论 382 浏览 评分:0.0
python 2805: 乘方计算 摘要:注意事项:参考代码:a, n = map(int, input().split()) print(a**n)…… 题解列表 2024年03月13日 0 点赞 0 评论 296 浏览 评分: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 评论 277 浏览 评分:0.0
判断是否为两位数 摘要:解题思路:注意事项:参考代码:n=int(input())if 10<=n<=99: print(1)else: print(0)…… 题解列表 2024年03月13日 0 点赞 0 评论 293 浏览 评分:2.0
三位数反转 摘要:解题思路:注意事项:参考代码:while True: try: num = int(input()) a = num % 10 b=num//10%10…… 题解列表 2024年03月12日 0 点赞 0 评论 259 浏览 评分:0.0
编写题解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): a=input() b=[' ' for k in range(len(a)…… 题解列表 2024年03月12日 0 点赞 0 评论 235 浏览 评分:0.0
python 2803: 整数的个数 摘要:参考代码:k = int(input()) arr = map(int, input().split()) one, five, ten = 0, 0, 0 for i in arr: …… 题解列表 2024年03月12日 0 点赞 1 评论 362 浏览 评分:9.9