这道题对吗??

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

zzhy1112 @ 2022-08-29 14:28:16

#include <iostream>

using namespace std;

int main () {

int apple[11];

for (int i = 1; i < 11; i++) {
    cin >> apple[i];
}
int h,ans = 0;

cin >> h;

h += 30;

for (int i = 1; i < 11; i++) {
    if (apple[i] < h + 1) {
        ans++;
    }
}

cout << ans;

return 0;

}


by WBCAZ @ 2022-08-29 14:34:14

对的,没问题


by Katz @ 2022-08-29 14:34:48

你MD炸了


by _CaoHao @ 2022-08-29 14:38:26

对的


by zulizX @ 2022-08-30 21:25:16

对的,欸?return 0后面的 } 少了


|