哈希法
2025-08-08 10:39:16
发布于:浙江
1阅读
0回复
0点赞
#include<stdio.h>
int hash[2];
int main(){
int row,column;
scanf("%d%d",&row,&column);
for (int i=1;i<=row;++i){
for (int j=1;j<=column;++j){
int chess;
scanf("%d",&chess);
hash[chess]++;
}
}
printf("%d %d",hash[0],hash[1]);
return 0;
}
这里空空如也
有帮助,赞一个