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