沒什特別的

 

#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;
}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大神(偽) 的頭像
    大神(偽)

    大神的世界

    大神(偽) 發表在 痞客邦 留言(0) 人氣()