1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:for i in range(100, 1000): if i == eval(str(i)[0])**3+eval(str(i)[1])**3+eval(str(…… 题解列表 2022年02月20日 0 点赞 0 评论 559 浏览 评分:0.0
1015: [编程入门]求和训练 解题思路:注意事项:参考代码:a,b,c=list(map(int,input().split()))sum1=0sum2=0sum3=0foriinrange(1,a+1):sum1+=iforjinrange(1,b+1):sum2+=pow(j, 题解列表 2022年02月20日 0 点赞 0 评论 469 浏览 评分:0.0
1013: [编程入门]Sn的公式求和 摘要:解题思路:利用字符串和eval()函数注意事项:参考代码:Sn = 0n = eval(input())for i in range(1, n+1): Sn += eval('2'…… 题解列表 2022年02月20日 0 点赞 0 评论 502 浏览 评分:0.0
编写题解 1210: 小明A+B 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n): a,b=map(int,input().split()) c=int(str(a…… 题解列表 2022年02月19日 0 点赞 0 评论 517 浏览 评分:9.9
编写题解 1207: 字符排列问题 摘要:解题思路:注意事项:参考代码:n=int(input()) m=input() ls=[] for i in set(m): ls.append(m.count(i)) s=1 …… 题解列表 2022年02月19日 0 点赞 0 评论 430 浏览 评分:0.0
编写题解 1204: 大小写转换 摘要:解题思路:注意事项:参考代码:while True: try: a=input() for i in a: 题解列表 2022年02月19日 0 点赞 2 评论 769 浏览 评分:0.0
编写题解 1197: 发工资咯 摘要:解题思路:注意事项:参考代码:while True: ls=list(map(int,input().split())) if ls[0]==0: break …… 题解列表 2022年02月19日 0 点赞 0 评论 592 浏览 评分:9.9
1195: 去掉双斜杠注释 摘要:解题思路:注意事项:参考代码:while True: try: n=input() if n[0]=='/' and n[1]=='…… 题解列表 2022年02月19日 0 点赞 0 评论 530 浏览 评分:0.0
编写题解 1190: 剔除相关数 摘要:解题思路:注意事项:参考代码:def to(a): ls=[i for i in str(a)] ls.sort() return ls def isgu(ls): …… 题解列表 2022年02月19日 0 点赞 0 评论 692 浏览 评分:0.0
找到一个易漏点 摘要:解题思路:注意事项:测试时输入数值时存在例如:41 1 2 1 2 3 42 3 4 5没有补齐0的操作,因此会导致后续索引超出范围,因此需要增加补0操作,本地已运行成功但还是只有87%的通过…… 题解列表 2022年02月18日 0 点赞 0 评论 743 浏览 评分:6.0