好容易忘记我要好好整理一下这些题目这题回文素数 摘要:解题思路:注意事项:判断素数又好久没写了,差点忘了,折腾了很久参考代码:from math import sqrt##def isp(a,b):a,b=map(int,input().split())…… 题解列表 2022年06月01日 0 点赞 1 评论 248 浏览 评分:9.9
编写题解 1089: A+B for Input-Output Practice (V) 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): #规定输入的行数 sum = 0 a = list(map(int,input(…… 题解列表 2022年06月01日 0 点赞 0 评论 340 浏览 评分:0.0
编写题解 1088: A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:while True: sum = 0 lis = list(map(int,input().split())) if lis[0] == 0: …… 题解列表 2022年06月01日 0 点赞 0 评论 178 浏览 评分:0.0
编写题解 1087: A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:while True: sum = 0 a = list(map(int,input().split())) if a[0]==0 and a[1]==…… 题解列表 2022年06月01日 0 点赞 0 评论 198 浏览 评分:0.0
我居然自己写对了,太棒了 摘要:解题思路:注意事项:参考代码:n=input()if int(n[::-1])==int(n): print('YES')else: print('NO')…… 题解列表 2022年06月01日 0 点赞 3 评论 581 浏览 评分:9.9
我对最大公约数和最小公倍数有一种恐惧,我不知道为什么 摘要:解题思路:注意事项:但是这又是最基本的参考代码:a=int(input())b=int(input())if a<b: t=a a=b b=tc=a%bwhile c!=0: …… 题解列表 2022年06月01日 0 点赞 3 评论 372 浏览 评分:9.9
本来以为很难,后来发现也就是循环加判断 摘要:解题思路:注意事项:参考代码:for i in range(0,10): p=i**2 if p%10==i: print(i,end=' ')for i …… 题解列表 2022年06月01日 0 点赞 1 评论 336 浏览 评分:9.9
开关在早上猜数游戏也有用到 摘要:解题思路:注意事项:参考代码:n=int(input())flag=0#看了题解才意识到可以设置一个开关for i in range(1,10): for j in range(0,10): …… 题解列表 2022年06月01日 0 点赞 0 评论 227 浏览 评分:0.0
只有一个循环就不会按顺序输出,不用再算,直接输出 摘要:解题思路:注意事项:参考代码:n=int(input())s1=s2=0for i in range(1,10): for j in range(0,10): for k in r…… 题解列表 2022年06月01日 0 点赞 0 评论 236 浏览 评分:0.0
小南解题--回文日期--126ms,149ms 摘要:法1:回文常用法,126ms最简单易懂,最常用,最高效#对于所有评测用例,10000101 ≤ N ≤ 89991231,保证N 是一个合法日期的8位数表示。 n = int(input())def …… 题解列表 2022年06月01日 0 点赞 0 评论 290 浏览 评分:0.0