字数压缩了一下(恐惧)
#include <iostream> using namespace std; int main() { int n, c1 = 0, c2 = 0, m;cin >> n; while (n--&&cin >> m) c1 += (m >= 10), c2 += (m >= 5); cout << min(5 + c1, c2) << endl; return 0; }