就简单比大小,感觉没什么含金量
摘要:解题思路:数据用map转化为迭代类型再转化为列表,然后遍历该列表比大小就行,注意高度相等也算够得到注意事项:不要忽略高度相等参考代码:a=list(map(int,input().split()))b……
陶陶摘苹果(C语言解析)
摘要:解题思路:通过将10个苹果的高度存放入一个数组,使其数据分别与陶陶所能过够到的最大高度(加上凳子高度)进行比较,从而得出其所能摘到的苹果数。注意事项:①注意sum的初始化!②注意在给数组的元素输入数据……
编写题解 1098: 陶陶摘苹果
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i=0; ……
旧物有情 # 陶陶摘苹果 阅读理解,读懂了就很简单!
摘要:```
#include
using namespace std;
const int N =15;
int a[N];
int main(){
//读取10个苹果到达地面的……
python7行解决
摘要:解题思路:注意事项:参考代码:a = [int(i) for i in input().split()]b = int(input())c = 0for i in a: if b + 30 >=……
逆天解法,包得吃的。
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[10]={0},a,i,b=0; for(i=0;i<10;i++) { scanf("%d"……
C++ 编写题解 1098: 陶陶摘苹果
摘要:解题思路: 注意事项: 参考代码: #include<iostream>using namespace std;int main(){ int a[11],high,count=0; for (int……
菲暃要加油——陶陶摘苹果(4行解决)
摘要:解题思路:引入python自带的 bisect库,可以很快的解决这个问题注意事项:用的是bisect_right函数参考代码:importbisectl=sorted(list(map……
换一种思路来写用set中upper_bound()函数
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <set>using namespace std;typedef long long ll……