沒什特別的
#include <iostream>
using namespace std;
int main()
{
int height[10];
for(int i = 0; i<10; i++)
cin >> height[i];
int Max_height;
cin >> Max_height;
Max_height += 30;
int cnt = 0;
for(int i = 0; i<10; i++)
if(Max_height >= height[i])
cnt++;
cout << cnt << endl;
return 0;
}
全站熱搜