[编程入门]水仙花数判断-题解(Python代码) 摘要:#### 利用两个循环求“水仙花数” ```python for i in range(100, 1000): #循环每一个三位数 sum = 0 for j in str…… 题解列表 2021年01月16日 0 点赞 0 评论 813 浏览 评分:9.0
蓝桥杯算法提高VIP-最长公共子序列-题解(Python代码)Python破冰 摘要:解题思路:解题思路与c++优质题解思路相同,利用矩阵计算。注意事项:注意两层循环中的i,j值与我们想要修改的矩阵值下表间相差1参考代码:str1 = input()str2 = input()matr…… 题解列表 2021年01月16日 0 点赞 0 评论 537 浏览 评分:9.9
[竞赛入门]简单的a+b-题解(Python代码) 摘要:```python #这种方式输入了2个int型的数字,split()代表以空格隔开。 while True: a,b = map(int,input().split()) p…… 题解列表 2021年01月11日 0 点赞 0 评论 883 浏览 评分:7.5
[编程入门]猴子吃桃的问题-题解(Python代码) 摘要:解题思路:注意事项:参考代码:"""1, 4, 10, 22, 46 ... (num + 1) * 2"""N = int(input(""))s = 1 # 最后一天 剩余1个 apple…… 题解列表 2021年01月09日 0 点赞 0 评论 427 浏览 评分: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 评论 544 浏览 评分:9.3
[编程入门]自定义函数之数字分离-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n = input()for i in n: print(i,end=" ")…… 题解列表 2021年01月09日 0 点赞 0 评论 309 浏览 评分: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 评论 578 浏览 评分: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 评论 696 浏览 评分:8.4
[编程入门]求和训练-题解(Python代码) 摘要:解题思路: 使用 for循环 和while循环两种方法注意事项:参考代码:for 循环:a,b,c = map(int,input().strip().split())sum1=Sn=fn=0for …… 题解列表 2021年01月09日 0 点赞 0 评论 315 浏览 评分:0.0