题解列表

筛选

还行,一般般吧

摘要:解题思路:注意事项:参考代码:def hanshu(a, b, c):    det = b ** 2 - 4 * a * c    if det > 0:        x1 = (-b + pow……

1015: [编程入门]求和训练

解题思路:注意事项:参考代码:a,b,c=list(map(int,input().split()))sum1=0sum2=0sum3=0foriinrange(1,a+1):sum1+=iforjinrange(1,b+1):sum2+=pow(j,

1013: [编程入门]Sn的公式求和

摘要:解题思路:利用字符串和eval()函数注意事项:参考代码:Sn = 0n = eval(input())for i in range(1, n+1):    Sn += eval('2&#39……

编写题解 1210: 小明A+B

摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n):     a,b=map(int,input().split())     c=int(str(a……

编写题解 1204: 大小写转换

摘要:解题思路:注意事项:参考代码:while True:     try:         a=input()         for i in a:          

编写题解 1197: 发工资咯

摘要:解题思路:注意事项:参考代码:while True:     ls=list(map(int,input().split()))     if ls[0]==0:         break ……