题解列表

筛选

[编程入门]水仙花数判断

摘要:解题思路:将三位数每一位分离出来是重点注意事项:参考代码:for i in range(100,1000):    a=i%10    b=(i%100)/10    c=i/100    if i=……

模拟过程,注意判断条件

摘要:解题思路:注意事项:参考代码:T = int(input()) for _ in range(T):     n = int(input())     matrix = [list(inpu……

python-解题代码

摘要:解题思路:注意事项:参考代码:a=int(input())b=a//10000c=a%10000k=0days=[0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, ……

利用最大公因数来求解

摘要:解题思路:注意事项:参考代码:# 求最大公因数 def cal(temp_1, temp_2):     if(temp_1 == temp_2):         return(temp_1)……