1 2 3 4 5 6 7 8 9 10 11 12 13 14
| #include <iostream> using namespace std; int h[10], t, cnt = 0; int main() { for (int i = 0; i < 10; ++i) cin >> h[i]; cin >> t; t += 30; for (int i = 0; i < 10; ++i) if (h[i] <= t) ++cnt; cout << cnt << endl; return 0; }
|