题解列表

筛选

扫雷游戏地雷数计算

解题思路:注意事项:参考代码:m,n=map(int,input().strip().split())myMatrix=[list(input().strip())forainrange(m)]Direction=[(-1,-1),(-1,0),

图像旋转

解题思路:和求转置差不多,添加列元素时,逆序一下注意事项:参考代码:n,m=map(int,input().strip().split())myList=[list(map(int,input().strip().split()))fortinrange(n)]myList1=[]forainrang

矩阵转置

解题思路:注意事项:参考代码:n,m=map(int,input().strip().split())myList=[list(map(int,input().strip().split()))fortinrange(n)]myList1=[]#转置后的数组forainrange(m):myList1

分解质因数

摘要:解题思路:    1.找出在(<b)的素数,素数会是因子    2.第一个for循环中循环需要分解的每一个因数    3.第二个for循环找到被分解的因数其每一个因子,不断往下循环找完为止参考代码:a……

图像相似度

解题思路:分别存入两个列表,一一比对注意事项:参考代码:m,n=map(int,input().split())myList1=[list(map(int,input().split()))fortinrange(m)]myList2=[list(map(int,

编写题解 2879: 错误探测

解题思路:注意事项:参考代码:m=int(input())aList=[]flag1=1myList=[list(map(int,input().split()))fortinrange(m)]i=0fortempinmyList:ifsum(temp)%2==0:continueelse:i+=1f

1073: 弟弟的作业

摘要:```python score = 0 while True: try: user = input().split("=") if user[1] =……

1074: 数字整除

```pythonn=int(input())#初始值whilen!=0:#n=0时停止lest=n//10if(lest-(n%10)*5)%17==0:print('1')else:print('0')n=int(input())```