1098: 陶陶摘苹果 摘要:```cpp #include using namespace std; int main() { int a[10],n,sum=0; for(int i=0;i>a[i…… 题解列表 2022年08月31日 0 点赞 0 评论 429 浏览 评分:9.9
1098: 陶陶摘苹果 摘要:解题思路:... ... ... ... ... ... ... ... ... ...注意事项:无参考代码:#include<iostream>using namespace std;int mai…… 题解列表 2022年08月18日 0 点赞 0 评论 603 浏览 评分:9.9
编写题解 1098: 陶陶摘苹果(c语言 看题解都比较麻烦,写一个基础简单的) 摘要:解题思路:正常的数组的输入与输出注意事项:不要被题目中的30厘米迷惑了,直接加上去就行参考代码:#include<stdio.h> int main(){ int a[10],i,n,c…… 题解列表 2022年08月15日 0 点赞 0 评论 839 浏览 评分:9.9
1098陶陶摘苹果应该有很多种解法 摘要:解题思路:注意事项:也可以试试看用多分支语句参考代码:s=0app=list(map(int,input().split()))hi=int(input())for i in app: if i…… 题解列表 2022年06月28日 1 点赞 0 评论 527 浏览 评分:0.0
淘淘吃苹果问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int n,sum=0; for(int i=0;i<10;i++){ …… 题解列表 2022年06月20日 0 点赞 0 评论 817 浏览 评分:9.9
1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; const int apple = 10; // 苹果数量int main() {…… 题解列表 2022年05月08日 0 点赞 0 评论 333 浏览 评分:0.0
陶陶摘苹果 题解 摘要:解题思路:就是判断有几个苹果的高度是小于或等于陶陶伸手的高度加上椅子的高度。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a[1…… 题解列表 2022年05月07日 0 点赞 0 评论 397 浏览 评分:0.0
陶陶摘苹果(C++简单题解) 摘要:解题思路:用淘淘的身高加上板凳的高度,就是淘淘能够到的高度,再和苹果的高度进行判断累加,最后输出;注意事项:加上板凳的30;参考代码: #includeusing namespace std;int …… 题解列表 2022年04月27日 0 点赞 0 评论 1669 浏览 评分:7.3
陶陶摘苹果之遍历数组 摘要:解题思路: 用最大高度加上30cm之后 遍历数组中的十个数字 能满足就计数加一 注意事项:参考代码:#include<bits/stdc++.h>using namespace std…… 题解列表 2022年03月27日 0 点赞 0 评论 537 浏览 评分:0.0
1098: 陶陶摘苹果题解 摘要:解题思路:这题很简单,我们需要一个数组a[10]来统计每个苹果距离地面的高度,然后判断陶陶把手伸直的时候能够达到的最大高度加上板凳的高度30是否大于每个苹果距离地面的高度,如果大于,计数器就自加,输出…… 题解列表 2022年03月27日 0 点赞 0 评论 443 浏览 评分:0.0