Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
2101 A班-袁誉晏 象棋比赛 C++ Accepted 100 0 MS 268 KB 370 2024-12-14 10:57:11

Tests(3/3):


#include <bits/stdc++.h> using namespace std; int main() { int n,a=0,b=0; cin>>n; int arr[n]; for(int i=0;i<n;i++) { cin>>arr[i]; } for(int i=0;i<n;i++) { if(arr[i]==10) { a++; } else { b++; } } if(a>b) { cout<<"10"; } else { cout<<"20"; } }


Judgement Protocol: