#include using namespace std; int a[20];
int main(){ int m,cnt = 0; for (int i = 0 ; i <= 9 ; i++){ cin >> a[i]; } cin >> m; for (int j = 0 ; j <= 9 ; j++){ if (a[j] <= m+30) cnt++; } cout << cnt << endl; return 0; }
songqiming114514 2023-12-09 16:00:46
#include using namespace std; int a[20];
int main(){ int m,cnt = 0; for (int i = 0 ; i <= 9 ; i++){ cin >> a[i]; } cin >> m; for (int j = 0 ; j <= 9 ; j++){ if (a[j] <= m+30) cnt++; } cout << cnt << endl; return 0; }