Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
361453 徐梓豪 【C4-8】奇偶统计? C++ 通过 100 2 MS 244 KB 257 2025-11-16 17:00:51

Tests(3/3):


#include<bits/stdc++.h> using namespace std; int a[105][105],m,n,s,o; 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) o++; else s++; } } cout<<s<<" "<<o; return 0; }


测评信息: