delete pics to save space
This commit is contained in:
21
history_source/信息学奥赛一本通/1.5.2.5.cpp
Normal file
21
history_source/信息学奥赛一本通/1.5.2.5.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int y,x;
|
||||
scanf("%d%d",&y,&x);
|
||||
int a[x][y],same=0;
|
||||
for(int i=0;i<y;i++)
|
||||
for(int j=0;j<x;j++)
|
||||
scanf("%d",&a[j][i]);
|
||||
for(int i=0;i<y;i++)
|
||||
for(int j=0;j<x;j++)
|
||||
{
|
||||
int x;
|
||||
scanf("%d",&x);
|
||||
if(x==a[j][i]) same++;
|
||||
}
|
||||
printf("%.2lf\n",(double)same*100/(x*y));
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user