1098: 陶陶摘苹果 摘要:解题思路:加起来对比。注意事项:无参考代码:#include<bits/stdc++.h> using namespace std; int main() { long long a,…… 题解列表 2022年11月12日 0 点赞 0 评论 226 浏览 评分:9.9
编写题解 1098: 陶陶摘苹果 摘要:解题思路:这个程序首先使用 Scanner 类读取输入数据。在读取10个苹果的高度时,我们使用一个整型数组来存储它们。在读取陶陶能够伸手的最大高度时,我们直接使用一个整数来存储它。接下来,程序使用一个…… 题解列表 2023年04月24日 0 点赞 0 评论 329 浏览 评分:9.9
简单又实用 摘要:解题思路:在已知的条件下,我们只需要一步一步去解析然后分解就可以完成这道题啦注意事项:参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2023年05月01日 0 点赞 0 评论 324 浏览 评分:9.9
就简单比大小,感觉没什么含金量 摘要:解题思路:数据用map转化为迭代类型再转化为列表,然后遍历该列表比大小就行,注意高度相等也算够得到注意事项:不要忽略高度相等参考代码:a=list(map(int,input().split()))b…… 题解列表 2023年08月30日 0 点赞 1 评论 820 浏览 评分:9.9
陶陶摘苹果(C语言解析) 摘要:解题思路:通过将10个苹果的高度存放入一个数组,使其数据分别与陶陶所能过够到的最大高度(加上凳子高度)进行比较,从而得出其所能摘到的苹果数。注意事项:①注意sum的初始化!②注意在给数组的元素输入数据…… 题解列表 2023年12月15日 0 点赞 3 评论 713 浏览 评分:9.9
C++ 编写题解 1098: 陶陶摘苹果 摘要:解题思路: 注意事项: 参考代码: #include<iostream>using namespace std;int main(){ int a[11],high,count=0; for (int…… 题解列表 2024年02月05日 0 点赞 0 评论 359 浏览 评分:9.9
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i=0; …… 题解列表 2024年08月06日 0 点赞 0 评论 256 浏览 评分:9.9
旧物有情 # 陶陶摘苹果 阅读理解,读懂了就很简单! 摘要:``` #include using namespace std; const int N =15; int a[N]; int main(){ //读取10个苹果到达地面的…… 题解列表 2024年10月17日 2 点赞 0 评论 243 浏览 评分:9.9
python7行解决 摘要:解题思路:注意事项:参考代码:a = [int(i) for i in input().split()]b = int(input())c = 0for i in a: if b + 30 >=…… 题解列表 2024年10月20日 0 点赞 0 评论 336 浏览 评分:9.9
逆天解法,包得吃的。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[10]={0},a,i,b=0; for(i=0;i<10;i++) { scanf("%d"…… 题解列表 2024年10月23日 0 点赞 0 评论 258 浏览 评分:9.9