题解
2025-02-17 20:52:25
发布于:广东
2阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int A[1005][1005];
int main(){
int n,m,cnt = 0;
cin >> n >> m;
for(int i = 1;i<= n;i++){
for(int j = 1;j <= n;j++){
cin >> A[i][j];
if(A[i][j] % m == 0){
cnt++;
}
}
}
cout << cnt;
return 0;
}
这里空空如也
有帮助,赞一个