#include using namespace std;

int main() { int apples[10]; int max_height; int count = 0;

for(int i = 0; i < 10; i++) {
    cin >> apples[i];
}
cin >> max_height;

for(int i = 0; i < 10; i++) {
    if(apples[i] <= max_height + 30) {
        count++;
    }
}

cout << count << endl;

return 0;

}

C++ 摘苹果问题:用代码解决陶陶的难题

原文地址: https://www.cveoy.top/t/topic/o8qc 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录