编写题解 1098: 陶陶摘苹果
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++) { scanf("……
我是菜狗。。。。。。。。。。。。
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; int b; for(int i=0;i<10;……
1098: 陶陶摘苹果
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using names……
编写题解 1098: 陶陶摘苹果
摘要:解题思路:这个程序首先使用 Scanner 类读取输入数据。在读取10个苹果的高度时,我们使用一个整型数组来存储它们。在读取陶陶能够伸手的最大高度时,我们直接使用一个整数来存储它。接下来,程序使用一个……
一维数组--2.陶陶摘苹果
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
int a[10],n,count=0;
for(int i=0;i<10;i++){
……
1098:陶陶摘苹果(C++代码)
摘要:解题思路:简单题,算法难度较低注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[10] = {0}; ……