Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
2098 | A班-岑思熠 | 象棋比赛 | C++ | Accepted | 100 | 1 MS | 256 KB | 330 | 2024-12-14 10:54:03 |
#include<bits/stdc++.h> using namespace std; int main() { int n,sum=0,temp=0; cin>>n; int a[n]; for(int i=0;i<n;i++) { cin>>a[i]; } for(int i=0;i<n;i++) { if(a[i]==10) { sum++; } else { temp++; } } if(sum>temp) { cout<<"10"; } else { cout<<"20"; } return 0; }