题解 1098: 陶陶摘苹果

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1098: 陶陶摘苹果题解

摘要:解题思路:这题很简单,我们需要一个数组a[10]来统计每个苹果距离地面的高度,然后判断陶陶把手伸直的时候能够达到的最大高度加上板凳的高度30是否大于每个苹果距离地面的高度,如果大于,计数器就自加,输出……

陶陶摘苹果之遍历数组

摘要:解题思路:    用最大高度加上30cm之后   遍历数组中的十个数字   能满足就计数加一  注意事项:参考代码:#include<bits/stdc++.h>using namespace std……

陶陶摘苹果 题解

摘要:解题思路:就是判断有几个苹果的高度是小于或等于陶陶伸手的高度加上椅子的高度。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a[1……

1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; const int apple = 10; // 苹果数量int main() {……

1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int n = 0, a[10] = {0}, ans = 0;    for (int i = 0; ……

1098: 陶陶摘苹果

摘要:##1098: 陶陶摘苹果 ```c #include int main() { int a[10],n,j=0; for(int i=0;i……

1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))b=int(input())+30c=0for i in a:    if i<=b:        c+……

陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int  a[10],i; int  num=0;    int n=10;    int  max; for……