1042: [编程入门]电报加密 简单的凯撒密码 摘要:解题思路:一看就是凯撒密码,循环替换就正确。注意事项:参考代码:x=input()s=""for i in x: if i>="a" and i<="z" or i>="A" and i<="Z"…… 题解列表 2022年12月29日 0 点赞 0 评论 284 浏览 评分:0.0
1016: [编程入门]水仙花数判断 稍稍复杂的循环判断 摘要:解题思路:就是简单循环判断题的加强版,设置范围,然后循环就好了。注意事项:参考代码:for i in range(100,1000): string=str(i) a=string[0] …… 题解列表 2022年12月29日 0 点赞 0 评论 262 浏览 评分:0.0
暴力解法(凑字数。。。。。。。 摘要:解题思路:注意事项:参考代码:n=list(input())m=n.copy()n.reverse()c=m+nfor i in c: print(i,end='')…… 题解列表 2022年12月28日 0 点赞 0 评论 283 浏览 评分:0.0
直接用python内置函数 摘要:解题思路:注意事项:参考代码:import mathfor i in range(1,40): if math.gcd(i,40)==1: print('%d/40'…… 题解列表 2022年12月28日 0 点赞 0 评论 264 浏览 评分:0.0
暴力解法(凑字数。。。。。。。 摘要:解题思路:注意事项:参考代码:def yinzi(n): sum=0 for i in range(1,n//2+1): if n %i==0: sum…… 题解列表 2022年12月28日 0 点赞 0 评论 344 浏览 评分:0.0
1231基础解法(Python) 摘要:解题思路:没啥思路注意事项:注意print()才是空一行,print('\n')是空两行参考代码:lst_rec = list(map(int, input().split()))fo…… 题解列表 2022年12月26日 0 点赞 0 评论 257 浏览 评分:0.0
解决第一个HelloWorld程序 摘要:解题思路:极其简单,直接输出"Hello World!"和“*”注意事项:大小写参考代码:print("**************************")print("Hello World!"…… 题解列表 2022年12月26日 0 点赞 0 评论 255 浏览 评分:0.0
max解决三个数找最大值 摘要:解题思路:先用map单行输入,再用max比大小。注意事项:参考代码:a,b,c=map(int,input().split())print(max(a,b,c))…… 题解列表 2022年12月26日 0 点赞 0 评论 354 浏览 评分:0.0
max解决三个数最大值 摘要:解题思路:看到比大小,就能想到max函数,两行解决。注意事项:参考代码:a,b,c=map(int,input().split())print(max(a,b,c))…… 题解列表 2022年12月26日 0 点赞 0 评论 471 浏览 评分:0.0
1144一行解(Python) 摘要:解题思路:掌握lambda写法注意事项:注意结构的顺序,不建议解题这样书写参考代码:print((' '.join(n for n in list(map(lambda x : &#…… 题解列表 2022年12月24日 0 点赞 0 评论 456 浏览 评分:9.0