python-寻找三位数 摘要:解题思路:a = [123:329]进行遍历,b = a*2,c = a*3sum = str(a)+str(b)+str(c)if len(set(sum)) == 9 and '0'…… 题解列表 2022年01月20日 0 点赞 0 评论 344 浏览 评分:0.0
python-多项式输出 摘要:解题思路:常规思路进行格式化输出注意事项:多项式的输出格式大致可分为四类①(n)次项 n次项系数等于1 n次项系数等于-1 其他②(n-1)次到2次项 系数大于1 系数等…… 题解列表 2022年01月20日 0 点赞 0 评论 521 浏览 评分:0.0
1182: 人民币问题 超简单理解 摘要:```python n=int(input()) count=0 for i in range(1,n+1): for j in range(1,n+1): for …… 题解列表 2022年01月20日 0 点赞 0 评论 299 浏览 评分:0.0
二级C语言-公约公倍(python代码) 摘要:解题思路:注意事项:有两种输入方式,参考代码:c=list(map(int,input().split()))if(len(c))<2: c.extend(list(map(int,input(…… 题解列表 2022年01月19日 0 点赞 1 评论 712 浏览 评分:9.9
[编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())sum_1 = 0sum_2 = 0sum_3 = 0for i in range(1,a+1): …… 题解列表 2022年01月19日 0 点赞 0 评论 209 浏览 评分:0.0
Cylinder题解,简单清晰 摘要:解题思路:注意事项:参考代码:from math import *w,h=map(float,input().split())while w: v=[] r=h/(pi+1)/2 i…… 题解列表 2022年01月19日 0 点赞 0 评论 413 浏览 评分:6.0
1097: 蛇行矩阵(最简洁明了) 摘要:解题思路:看题目找规律注意事项:不用再找其他的了,我的是最简单的参考代码:n=int(input())List=[[0]*n for _ in range(n)]List[0][0]=1k=1for …… 题解列表 2022年01月18日 0 点赞 9 评论 746 浏览 评分:9.9
python-蓝桥杯算法提高VIP-分苹果 摘要:解题思路:思路参考的大佬的思路,采用了差分法。说一下自己对这个方法的理解。①建立一个数组dis[n+2],里面存储的值是每个小朋友与上一个小朋友手里的苹果的差值,初始化值为0。 每发一次苹果, …… 题解列表 2022年01月18日 0 点赞 0 评论 474 浏览 评分:0.0
1095: The 3n + 1 problem 摘要:解题思路:大致用英语翻译即可。注意事项:注意前面一个输入的值可能比后面的小。参考代码:def my_f(a,b): flag=0 if a>b: a,b=b,a …… 题解列表 2022年01月18日 0 点赞 0 评论 470 浏览 评分:9.9
python-任意年月日历输出 摘要:解题思路:用python解题的话主要用到了calendar库中的setfirstweekday()函数和month()函数,这里就不和大家详细写了。大家可以去百度一下这个库的用法,有很多博主写的都不错…… 题解列表 2022年01月18日 0 点赞 0 评论 456 浏览 评分:9.9