1 条题解
-
0YUIS (丶tc守望者) LV 8 MOD @ 2019-06-12 21:13:22
#include <iostream>
using namespace std;
int main(){
int apple[10];
int tao;
for(int i = 0; i < 10; i++){
cin >> apple[i];
}
cin >> tao;
int count = 0;
for (int i = 0; i < 10; i++) {
if (apple[i] <= tao+30) {
count++;
}
}
cout << count << endl;
}
- 1