完数的判断-题解--新手(Python代码) 摘要:解题思路:注意事项:参考代码:#随便输入一个数num=int(input())# 从2开始逐个判断num以内的数,因为任何完数的因数都包含1,所以没有必要增加程序计算量再判断一次1for i in r…… 题解列表 2022年02月05日 0 点赞 1 评论 1017 浏览 评分:9.0
1118: Tom数(python) 摘要:解题思路:注意事项:参考代码:while(True): a=input() sum=0 for i in a: sum+=int(i) print(sum)…… 题解列表 2022年02月05日 0 点赞 0 评论 751 浏览 评分:9.9
做题记录2022.2.5(ac:100%) 摘要:解题思路:总交换次数最少->每个位置交换次数最少->找到离不同字母位置最近的相同字母注意事项:参考代码:length = int(input()) list1 = list(input().stri…… 题解列表 2022年02月05日 0 点赞 0 评论 475 浏览 评分:0.0
python-小朋友崇拜圈 摘要:解题思路:①准备工作: 用字典存放对应小朋友编号以及他崇拜的小朋友的编号 建立一个大小为n+1的访问数组,用来表示这个小朋友是否已经被访问过。②从编号1~N进行遍历 首先判断编号为i…… 题解列表 2022年02月05日 0 点赞 0 评论 597 浏览 评分:4.7
python-等腰三角形 摘要:解题思路:从题目中我们知道0~9每个数字占一位。①先生成1~1000的数字字符串,('123456789101112131415161718192021......'),这里记为A。②…… 题解列表 2022年02月05日 0 点赞 0 评论 657 浏览 评分:9.9
IP判断(Python) 摘要:解题思路:注意事项:参考代码:while(True): List=input() if(List=='End of file'): break else…… 题解列表 2022年02月05日 0 点赞 1 评论 570 浏览 评分:9.9
数组插入处理 python 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split()))b = int(input())a.append(b)a.sort()for i in a: p…… 题解列表 2022年02月05日 0 点赞 0 评论 446 浏览 评分:2.0
DNA( Python )哈哈小白只懂这么写 摘要:解题思路: 先生成二维列表,再把二维列表弄成符合题目意思的内容注意事项: 注意格式输出参考代码: n=int(input())while(n>0): a,b=map(int,input().…… 题解列表 2022年02月05日 0 点赞 0 评论 586 浏览 评分:9.9
【露离】1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:def zhuanzhi(): a=[input().split(),input().split(),input().split()] b=[[],[],[]…… 题解列表 2022年02月05日 0 点赞 0 评论 293 浏览 评分:0.0
【露离】编写题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:def sushu(): for i in range(2,n): if n%i==0: print('not prim…… 题解列表 2022年02月05日 0 点赞 0 评论 308 浏览 评分:0.0