Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128206 赵乘浩 图像相似度 Python3 Accepted 78 MS 3964 KB 319 2025-08-10 09:27:47

Tests(10/10):


Code:

m,n = input().split() n,m = int(n),int(m) a=[] for x in range(m): t=input().split() a.append(t) b=[] for x in range(m): t=input().split() b.append(t) s=0 for x in range(m): for y in range(n): if a[x][y]==b[x][y]: s+=1 res = s/(m*n)*100 print("{:.2f}".format(res))