👍
#include <bits/stdc++.h> using namespace std; int main(){ int a[10], n, ans = 0; for (int i = 0; i < 10; i++) { cin >> a[i]; } cin >> n; for (int i = 0; i < 10; i++) { if (a[i] > n + 30) { ans++; } } cout << 10 - ans; return 0; }
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.
Using your Hydro universal account