模拟->陶陶摘苹果题解 摘要:$$NOIP$$ $$2008$$年第一题的模拟水题!##### 思路遍历数组,当陶陶的身高$$+30$$后大于当前苹果,就将结果$$+1$$,最后输出这个答案即可(为什么$$NOIP$$普及…… 题解列表 2025年07月26日 0 点赞 0 评论 86 浏览 评分:0.0
换一种思路来写用set中upper_bound()函数 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <set>using namespace std;typedef long long ll…… 题解列表 2025年03月20日 1 点赞 0 评论 429 浏览 评分:10.0
旧物有情 # 陶陶摘苹果 阅读理解,读懂了就很简单! 摘要:``` #include using namespace std; const int N =15; int a[N]; int main(){ //读取10个苹果到达地面的…… 题解列表 2024年10月17日 2 点赞 0 评论 452 浏览 评分:9.9
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a[10],tg,zd=0; for(int i=0;…… 题解列表 2024年06月16日 0 点赞 0 评论 267 浏览 评分:0.0
1098陶陶摘苹果(for循环遍历解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[15];//存苹果高度 int b;//存陶陶的高度 in…… 题解列表 2024年05月31日 0 点赞 0 评论 367 浏览 评分:0.0
C++ 编写题解 1098: 陶陶摘苹果 摘要:解题思路: 注意事项: 参考代码: #include<iostream>using namespace std;int main(){ int a[11],high,count=0; for (int…… 题解列表 2024年02月05日 1 点赞 0 评论 409 浏览 评分:10.0
陶陶摘苹果 摘要:解题思路:通过两个for循环来完成注意事项:参考代码:#include <iostream>using namespace std;int main() { int a[10]; for (int i…… 题解列表 2023年12月08日 0 点赞 0 评论 183 浏览 评分:0.0
题解 1098: 陶陶摘苹果 摘要: #include using namespace std; int a[20000],b,c,sum; int main(){ for(int i=0…… 题解列表 2023年11月28日 0 点赞 0 评论 306 浏览 评分: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 评论 183 浏览 评分:0.0
我是菜狗。。。。。。。。。。。。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; int b; for(int i=0;i<10;…… 题解列表 2023年05月12日 0 点赞 0 评论 177 浏览 评分:0.0