3 条题解
-
1
已AC,请放心食用
#include <iostream> using namespace std; int main() { int n, a[10], sum1 = 0, sum2 = 0; cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] == 10) { sum1++; } else { sum2++; } } if (sum1 > sum2) { cout << "10"; } else { cout << "20"; } return 0; }
- 1
信息
- ID
- 804
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 1
- 标签
- 递交数
- 48
- 已通过
- 40
- 上传者