[编程入门]猴子吃桃的问题-题解(Python代码) 摘要:解题思路:注意事项:参考代码:"""1, 4, 10, 22, 46 ... (num + 1) * 2"""N = int(input(""))s = 1 # 最后一天 剩余1个 apple…… 题解列表 2021年01月09日 0 点赞 0 评论 595 浏览 评分:0.0
[编程入门]自由下落的距离计算-题解(Python代码) 摘要:解题思路:注意事项:参考代码:M,N = map(int, input().strip().split())S = 0for i in range(N): M = M / 2 S …… 题解列表 2021年01月09日 0 点赞 0 评论 712 浏览 评分:9.3
[编程入门]自定义函数之数字分离-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n = input()for i in n: print(i,end=" ")…… 题解列表 2021年01月09日 0 点赞 0 评论 480 浏览 评分:0.0
[编程入门]完数的判断-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(1,n+1): s = 0; str_x = "" if i % 10 == 6 or i % …… 题解列表 2021年01月09日 0 点赞 0 评论 695 浏览 评分:2.0
[编程入门]水仙花数判断-题解(Python代码) 摘要:解题思路:注意事项:参考代码:s_sum = 0for i in range(100,1000): for ch in str(i): s_sum += (eval(ch))**3…… 题解列表 2021年01月09日 0 点赞 0 评论 806 浏览 评分:8.4
[编程入门]求和训练-题解(Python代码) 摘要:解题思路: 使用 for循环 和while循环两种方法注意事项:参考代码:for 循环:a,b,c = map(int,input().strip().split())sum1=Sn=fn=0for …… 题解列表 2021年01月09日 0 点赞 0 评论 433 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(Python代码) 摘要:解题思路:注意事项:参考代码:def fanchuan(n): return str(n)[::-1]a = input()c = fanchuan(a)print(c.strip())…… 题解列表 2021年01月08日 0 点赞 0 评论 506 浏览 评分:0.0
[编程入门]自由下落的距离计算-题解(Python代码) 摘要:```python m,n = map(int,input().split()) a=m gsum = 0 for i in range(1,n+1): m = m/2 g…… 题解列表 2021年01月07日 0 点赞 1 评论 1595 浏览 评分:9.9
[编程入门]有规律的数列求和-题解(Python代码) 摘要: n = int(input()) lst = [1,2] sum = 0 for i in range(0,n): sum += lst[i+1]/l…… 题解列表 2021年01月07日 0 点赞 0 评论 432 浏览 评分:0.0
[编程入门]求和训练-题解(Python代码) 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())e=f=g=0for i in range(1,a+1): e += ifor i in range…… 题解列表 2021年01月06日 0 点赞 0 评论 362 浏览 评分:0.0