题解列表

筛选

优质题解,有解析

摘要:解题思路:注意事项:参考代码:# 读取输入矩阵  matrix = []  for _ in range(5):      row = list(map(int, input().split())) ……

2844: 大整数的因子

摘要:解题思路:注意事项:参考代码:flag = Truen = int(input())for i in range(2,10,1):    if n % i == 0:        if flag: ……

2840: 向量点积计算

摘要:解题思路:注意事项:参考代码:n = int(input())la = list(map(int,input().split()))lb = list(map(int,input().split())……

2839:石头剪刀布

摘要:解题思路:注意事项:参考代码:n,a,b=map(int,input().strip().split())la = list(input().split())lb = list(input().spl……

1099: 校门外的树

摘要:解题思路:使用了列表计数器,来对用到的树进行标记注意事项:参考代码:l,m=map(int,input().strip().split())lis = [i for i in range(l+1)]f……

2837: 年龄与疾病

摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())a = b = c = d = 0for i in l:    if 0 <= int(……

2836: 数组逆序重放

摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())l = l[::-1]print(" ".join(l))……

第n小的质数

摘要:解题思路:注意事项:参考代码:import mathn = int(input())flag = Truet = 0for i in range(2,100000):    flag = True  ……

你跟我说这是入门题?

摘要:解题思路:还是我文心一言牛逼霍,直接复制粘贴就对了注意事项:参考代码:def check_matrix(matrix):      n = len(matrix)      row_counts = ……