逆天解法,包得吃的。 摘要:解题思路:注意事项:参考代码:#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 评论 732 浏览 评分:9.9
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i=0; …… 题解列表 2024年08月06日 0 点赞 0 评论 643 浏览 评分:9.9
1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 10int main(){ int a[N]; int point,sum=0; for(int …… 题解列表 2024年07月16日 0 点赞 0 评论 500 浏览 评分: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 评论 445 浏览 评分:6.0
1098: 陶陶摘苹果 摘要:解题思路: 注意事项:判断能否摘到苹果一定是大于等于哦参考代码:#include<stdio.h>#define APPLENUMBER 10int main(){ int bench_heig…… 题解列表 2024年01月14日 0 点赞 0 评论 490 浏览 评分:0.0
1098: 陶陶摘苹果 C语言 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include int main() { int apple_hight[10] = {0};//…… 题解列表 2024年01月11日 0 点赞 0 评论 538 浏览 评分:0.0
面向过程编程 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10] = {0};//初始化Apples的高度…… 题解列表 2023年12月19日 0 点赞 0 评论 458 浏览 评分:0.0
陶陶摘苹果(C语言解析) 解题思路:通过将10个苹果的高度存放入一个数组,使其数据分别与陶陶所能过够到的最大高度(加上凳子高度)进行比较,从而得出其所能摘到的苹果数。注意事项:①注意sum的初始化!②注意在给数组的元素输入数据时,中间要有空格,%d后面要加上。③注意测试时, 题解列表 2023年12月15日 0 点赞 3 评论 1178 浏览 评分:9.9
用C语言简单的思路来解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,h,count=0;//i为数组下标,h为陶陶高度,count为摘下来的果子个…… 题解列表 2023年12月15日 0 点赞 0 评论 475 浏览 评分:0.0
摘苹果的天天 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int b; int i=0,j=0; while(~scanf(…… 题解列表 2023年12月14日 0 点赞 0 评论 381 浏览 评分:0.0