题解列表

筛选

1169: 绝对值排序

摘要:解题思路:注意事项:参考代码:while True:     try:         n = list(map(int, input().split()))         a = n[1:]……

1023: [编程入门]选择排序

摘要:解题思路:注意事项:参考代码:a = list(map(int, input().split())) for i in range(len(a)):     temp = i     for j……

2518: 信息学奥赛一本通T1620-质因数分解

摘要:解题思路: 从n到2,倒序判断k是为质数,若为质数,再判断 n%k == 0 同时判断 n//k是否也为质数,若都满足,则n为两个质数的积注意事项:题目的测试用例有问题,测试用例验证的:只是一个质数与……

不与最大数相同的数字之和

摘要:解题思路:先把数列中的全部数相加,最后再减去最大值就ok了注意事项:注意范围参考代码:n = int(input())a = list(map(int,input().split()))sum=0fo……

简单易懂方法,回文子串

摘要:解题思路:注意事项:参考代码:s = input().strip() num,num1 = [],[] n = 2 for i in range(len(s)):     for j in r……

1259: 送分题素数

摘要:解题思路:注意事项:参考代码:from math import * arr = [] for i in range(100, 201):     for j in range(2, ceil(s……