提交时间:2024-11-09 22:32:31
运行 ID: 56244
#include <bits/stdc++.h> using namespace std; int main(){ int x[10]; for (int i = 0;i <= 9;i ++){ int apple ; cin >> apple; x[i] = apple; } int sum = 0; int h; cin >> h; for (int i = 1;i <= 10;i ++){ if (x[i - 1] <= h + 30){ sum ++; } } cout << sum; return 0; }