字符串输入输出函数-题解(Python代码) 摘要:解题思路:注意事项:参考代码:def get1(): a=float(input("please input a number:\n")) return adef get2(): b…… 题解列表 2020年11月18日 0 点赞 2 评论 727 浏览 评分:9.9
二级C语言-等差数列-题解(Python代码) 摘要:参考代码:sum=0 n=int(input()) #a1*n+n(n-1)*b/2 while n>0: num=3*n-1 sum+=num n-=1 pri…… 题解列表 2020年11月18日 0 点赞 0 评论 593 浏览 评分:0.0
二级C语言-等差数列-题解(Python代码) 摘要:解题思路:注意事项:sum=0 n=int(input()) #a1*n+n(n-1)*b/2 while n>0: num=3*n-1 sum+=num n-=1…… 题解列表 2020年11月18日 0 点赞 0 评论 493 浏览 评分:0.0
C语言训练-"水仙花数"问题2-题解(Python代码) 摘要:解题思路:注意事项:参考代码:num=100 while num<1000: if num==int(str(num)[0])**3+int(str(num)[1])**3+int(str…… 题解列表 2020年11月18日 0 点赞 0 评论 731 浏览 评分:9.9
C语言训练-"水仙花数"问题1-题解(Python代码) 摘要:解题思路:注意事项:参考代码:num = input() if int(num)==int(num[0])**3+int(num[1])**3+int(num[2])**3: print(…… 题解列表 2020年11月18日 0 点赞 0 评论 917 浏览 评分:9.9
蓝桥杯算法提高VIP-交换Easy-题解(Python代码) 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())pp=list(map(int,input().split()))for i in range(0,b): …… 题解列表 2020年11月17日 0 点赞 0 评论 378 浏览 评分:6.0
字符排列问题-题解(Python代码) 摘要:解题思路: 直接调用itertools里面的排列组合方法 用集合除去一下重复,测长即可注意事项:参考代码:from itertools import permutations print(len(…… 题解列表 2020年11月17日 0 点赞 0 评论 364 浏览 评分:0.0
蓝桥杯算法训练VIP-提货单-题解(Python代码)简单题6行 摘要:解题思路: 略。注意事项: 精度为小数点后6位。参考代码:n = int(input().strip()) temp = 0 for i in range(n): item …… 题解列表 2020年11月17日 0 点赞 0 评论 615 浏览 评分:0.0
[编程入门]水仙花数判断-题解(Python代码) 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): m=str(i) [a,b,c]=[m[0],m[1],m[2]] z=pow(int(a),3)+…… 题解列表 2020年11月17日 0 点赞 0 评论 671 浏览 评分:9.3
[编程入门]水仙花数判断-题解(Python代码) 摘要:解题思路:暴力枚举注意事项:字符串与数字的转化参考代码:for i in range(1,10): for q in range(10): for w in range(10): …… 题解列表 2020年11月15日 0 点赞 0 评论 349 浏览 评分:0.0