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