1098: 陶陶摘苹果 摘要:参考代码:arr = list(map(int, input().split())) h = int(input()) count = 0 for i in range(len(arr)): …… 题解列表 2024年03月20日 0 点赞 0 评论 480 浏览 评分:0.0
用for放高度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int i=0; int apple=0; int hig[10]; int sh; for(;i<10;i+…… 题解列表 2024年03月11日 0 点赞 0 评论 202 浏览 评分:6.0
最Easy的一集 摘要:这怎么好意思放在中等题???? ``` import java.util.Scanner; public class Main { public static void mai…… 题解列表 2024年03月04日 1 点赞 0 评论 337 浏览 评分:0.0
C++ 编写题解 1098: 陶陶摘苹果 摘要:解题思路: 注意事项: 参考代码: #include<iostream>using namespace std;int main(){ int a[11],high,count=0; for (int…… 题解列表 2024年02月05日 1 点赞 0 评论 455 浏览 评分:10.0
编写题解 1098: 陶陶摘苹果 摘要:参考代码:public static void main(String args[]) { Scanner sc=new Scanner (System.in); int []arr=ne…… 题解列表 2024年01月30日 0 点赞 0 评论 195 浏览 评分:0.0
1098: 陶陶摘苹果 摘要:解题思路: 注意事项:判断能否摘到苹果一定是大于等于哦参考代码:#include<stdio.h>#define APPLENUMBER 10int main(){ int bench_heig…… 题解列表 2024年01月14日 0 点赞 0 评论 252 浏览 评分:0.0
1098: 陶陶摘苹果 C语言 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include int main() { int apple_hight[10] = {0};//…… 题解列表 2024年01月11日 0 点赞 0 评论 186 浏览 评分:0.0
面向过程编程 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10] = {0};//初始化Apples的高度…… 题解列表 2023年12月19日 0 点赞 0 评论 196 浏览 评分:0.0
陶陶摘苹果(C语言解析) 摘要:解题思路:通过将10个苹果的高度存放入一个数组,使其数据分别与陶陶所能过够到的最大高度(加上凳子高度)进行比较,从而得出其所能摘到的苹果数。注意事项:①注意sum的初始化!②注意在给数组的元素输入数据…… 题解列表 2023年12月15日 0 点赞 3 评论 862 浏览 评分:9.9
用C语言简单的思路来解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,h,count=0;//i为数组下标,h为陶陶高度,count为摘下来的果子个…… 题解列表 2023年12月15日 0 点赞 0 评论 182 浏览 评分:0.0