| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 361451 | 王冠程 | 【C4-8】奇偶统计? | C++ | 通过 | 100 | 4 MS | 244 KB | 262 | 2025-11-16 16:59:10 |
#include<bits/stdc++.h> using namespace std; int a[105][105],m,n,x,y; int main(){ cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>a[i][j]; if(a[i][j]%2==0) x++; else y++; } } cout<<y<<" "<<x; return 0; }