陶陶摘苹果(C语言解析) 摘要:解题思路:通过将10个苹果的高度存放入一个数组,使其数据分别与陶陶所能过够到的最大高度(加上凳子高度)进行比较,从而得出其所能摘到的苹果数。注意事项:①注意sum的初始化!②注意在给数组的元素输入数据…… 题解列表 2023年12月15日 0 点赞 3 评论 994 浏览 评分:9.9
用C语言简单的思路来解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,h,count=0;//i为数组下标,h为陶陶高度,count为摘下来的果子个…… 题解列表 2023年12月15日 0 点赞 0 评论 312 浏览 评分:0.0
摘苹果的天天 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int b; int i=0,j=0; while(~scanf(…… 题解列表 2023年12月14日 0 点赞 0 评论 243 浏览 评分:0.0
陶陶摘苹果 摘要:解题思路:通过两个for循环来完成注意事项:参考代码:#include <iostream>using namespace std;int main() { int a[10]; for (int i…… 题解列表 2023年12月08日 0 点赞 0 评论 302 浏览 评分:0.0
题解 1098: 陶陶摘苹果 摘要: #include using namespace std; int a[20000],b,c,sum; int main(){ for(int i=0…… 题解列表 2023年11月28日 0 点赞 0 评论 454 浏览 评分:0.0
1098: 陶陶摘苹果 摘要:```cpp #include using namespace std; int h[10],a; int main(){ for( int i=1;i>h[i]; } cin>>…… 题解列表 2023年11月27日 0 点赞 0 评论 272 浏览 评分:0.0
陶陶摘苹果 摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split()))h = int(input())c = 0for i in range(0,len(ls)): …… 题解列表 2023年11月26日 0 点赞 0 评论 440 浏览 评分:0.0
就简单比大小,感觉没什么含金量 摘要:解题思路:数据用map转化为迭代类型再转化为列表,然后遍历该列表比大小就行,注意高度相等也算够得到注意事项:不要忽略高度相等参考代码:a=list(map(int,input().split()))b…… 题解列表 2023年08月30日 0 点赞 1 评论 1140 浏览 评分:9.9
陶陶摘苹果 摘要:解题思路:注意事项:一定要记得数组下标从0开始!!!参考代码:#include<stdio.h>int main(){ int a[10],n,count=0; for(int i=0;i…… 题解列表 2023年08月02日 0 点赞 0 评论 315 浏览 评分:0.0
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++) { scanf("…… 题解列表 2023年06月10日 0 点赞 0 评论 326 浏览 评分:0.0