Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75293 sh25_wangtaojie 陶陶摘苹果 C++ 通过 0 MS 248 KB 470 2025-12-05 15:41:48

Tests(1/1):


#include <iostream> #include <vector> using namespace std; int main() { vector<int> apple_heights(10); int max_hand_height; for (int i = 0; i < 10; i++) { cin >> apple_heights[i]; } cin >> max_hand_height; int count = 0; for (int height : apple_heights) { if (height <= max_hand_height || height <= max_hand_height + 30) { count++; } } cout << count << endl; return 0; }


测评信息: