Run ID:83809
提交时间:2024-07-14 22:37:01
""" 3 3 1 0 1 0 0 1 1 1 0 1 1 0 0 0 1 0 0 1 """ row,col = map(int,input().split()) a= [input().split() for x in range(row)] b= [input().split() for x in range(row)] cnt = 0 for x in range(row): for y in range(col): if a[x][y] == b[x][y]: cnt +=1 res = cnt/(row*col) * 100 print("{:.2f}".format(res))