90分 求大佬帮助

P1046 [NOIP2005 普及组] 陶陶摘苹果

努力学习ACM @ 2019-03-04 19:26:18

#include <iostream>

using namespace std;

int main()
{
    int tall[10] = {}  ;
    int  height ;
    int count = 0;
    for ( int i = 0 ; i < 10 ; i ++){
        cin >> tall[i] ;
    }
    cin >> height;
    for ( int x = 0 ; x < 10 ; x ++ ){
        if (tall[x] < height + 30) count ++ ;
    }
    cout << count << endl;
    return 0;
}

by Baoyanchen @ 2019-03-09 20:17:36

@努力学习ACM 反正我过了


by 陈俊宇523 @ 2019-08-23 14:17:23

tall[x] <= height + 30


上一页 |