Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
2098 | A班-岑思熠 | 象棋比赛 | C++ | 通过 | 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; }