编写题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())deta = (b**2 - 4*a*c)**(1/2)x1 = (-b + deta)/(2*a)x2 …… 题解列表 2022年06月01日 0 点赞 0 评论 262 浏览 评分:0.0
编写题解 1092: A+B for Input-Output Practice 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): sum = 0 a = list(map(int,input().split())) …… 题解列表 2022年06月01日 0 点赞 0 评论 298 浏览 评分:0.0
好容易忘记我要好好整理一下这些题目这题回文素数 摘要:解题思路:注意事项:判断素数又好久没写了,差点忘了,折腾了很久参考代码:from math import sqrt##def isp(a,b):a,b=map(int,input().split())…… 题解列表 2022年06月01日 0 点赞 1 评论 345 浏览 评分: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 评论 428 浏览 评分: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 评论 260 浏览 评分: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 评论 319 浏览 评分:0.0
我居然自己写对了,太棒了 摘要:解题思路:注意事项:参考代码:n=input()if int(n[::-1])==int(n): print('YES')else: print('NO')…… 题解列表 2022年06月01日 0 点赞 3 评论 649 浏览 评分: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 评论 455 浏览 评分: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 评论 413 浏览 评分:9.9
开关在早上猜数游戏也有用到 摘要:解题思路:注意事项:参考代码:n=int(input())flag=0#看了题解才意识到可以设置一个开关for i in range(1,10): for j in range(0,10): …… 题解列表 2022年06月01日 0 点赞 0 评论 332 浏览 评分:0.0