| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1333750 | zhehan | IMO (EGOI25_imo) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m,k;
cin>>n>>m>>k;
int arr[n][m];
int a=0,b=0;
for(int i=0;i<n;++i){
for(int j=0;j<m;++j){
cin>>arr[i][j];
if(i=0){
a+=arr[i][j];
}else{
b+=arr[i][j];
}
}
}
if(a>=b){
if(arr[1][0]==0||arr[1][1]==0){
cout<<2<<'\n';
}else{
cout<<1<<'\n';
}
}else{
if(arr[1][0]==1&&arr[1]1[]==1){
cout<<1<<'\n';
}else{
cout<<0<<'\n';
}
}
return 0;
}
