题解列表

筛选

编写题解 1159: 偶数求和

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

蓝桥杯基础练习VIP-阶乘计算

摘要:解题思路:注意事项:参考代码:def jc(n):    result=1    while n!=1:        result=result*n        n=n-1    return i……

编写题解 1169: 绝对值排序

摘要:while True:     a=list(map(int,input().split()))     if a[0] == 0:         break     a = a[1:] ……

一行代码解决字符逆序问题

摘要:解题思路:由于input输出的直接就是字符串,我们就可以直接对字符串进行逆序,使用的方法就是切片逆序[::-1],-1就是逆序输出,那么解题方法就很简单了,一行代码就可以解决。参考代码:print(s……