解题思路:
注意事项:
参考代码:
m,n = map(int,input().split())
la = []
lb = []
for i in range(m):
s = list(map(int,input().split()))
la.append(s)
for i in range(m):
s = list(map(int,input().split()))
lb.append(s)
c = 0
for i in range(m):
for a,b in zip(la[i],lb[i]):
if a == b:
c += 1
print("%.2f" % (100*(c/(m*n))))
0.0分
0 人评分