1020-猴子吃桃的问题 数据结构:数组 语言:C++ 摘要:解题思路:注意事项:参考代码:/*a[]数组存储每一天桃子的剩余量。a[i]表示第i天桃子的剩余量。 a[i]=a[i-1]-(a[i-1]/2+1) => a[i-1]=2(a[i]+1)*/#in…… 题解列表 2022年10月04日 0 点赞 0 评论 372 浏览 评分:0.0
1019-自由下落的距离计算 语言:C++ 摘要:解题思路:注意事项:参考代码:/*/2:n次求和:前n-1次 */#include<iostream>using namespace std;int main(){ double m; int n; …… 题解列表 2022年10月04日 0 点赞 0 评论 314 浏览 评分:0.0
编写题解 2084: 蓝桥杯基础练习-特殊回文数 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2022年10月04日 0 点赞 0 评论 414 浏览 评分:9.9
1018-有规律的数列求和 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >>n; int a[n]={2,3},b[n]…… 题解列表 2022年10月04日 0 点赞 0 评论 311 浏览 评分:0.0
1017-完数的判断 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >>n; for(int i=2;i…… 题解列表 2022年10月04日 0 点赞 0 评论 362 浏览 评分:0.0
1016-水仙花数判断 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a,b,c=3; …… 题解列表 2022年10月04日 0 点赞 0 评论 349 浏览 评分:0.0
1015-求和训练 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef long long LL;LL sum(int a){ LL res=0; f…… 题解列表 2022年10月04日 0 点赞 0 评论 310 浏览 评分:0.0
实数的打印(java暴力) 摘要:解题思路:注意事项:参考代码: import java.util.Scanner; public class Main{ public static void main(Strin…… 题解列表 2022年10月04日 0 点赞 1 评论 346 浏览 评分:9.9
此题有个小坑 答案错误50的可以看过来 摘要:# MarkDown编辑器基本使用说明 **首先学习一个函数** /*原型:int strcmp(const char *s1, const char *s2); 头文件:#include …… 题解列表 2022年10月04日 0 点赞 2 评论 566 浏览 评分:9.9
优质题解 【C语言】数的读法:简单的逆向思维处理方式 - DotcppXF 摘要:【解题思路】 ① 题目其实很简单,但是直接做起来很麻烦,因为各种特殊情况都需要单独加判断进行处理; ② 正常的解题方式可将输入的数当作字符串处理,然后从高位读向低位,但我个…… 题解列表 2022年10月04日 0 点赞 0 评论 1166 浏览 评分:9.9