此题有个小坑 答案错误50的可以看过来 摘要:# MarkDown编辑器基本使用说明 **首先学习一个函数** /*原型:int strcmp(const char *s1, const char *s2); 头文件:#include …… 题解列表 2022年10月04日 0 点赞 2 评论 594 浏览 评分:9.9
实数的打印(java暴力) 摘要:解题思路:注意事项:参考代码: import java.util.Scanner; public class Main{ public static void main(Strin…… 题解列表 2022年10月04日 0 点赞 1 评论 376 浏览 评分:9.9
1015-求和训练 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef long long LL;LL sum(int a){ LL res=0; f…… 题解列表 2022年10月04日 0 点赞 0 评论 339 浏览 评分:0.0
1016-水仙花数判断 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a,b,c=3; …… 题解列表 2022年10月04日 0 点赞 0 评论 376 浏览 评分: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 评论 390 浏览 评分:0.0
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 评论 341 浏览 评分:0.0
编写题解 2084: 蓝桥杯基础练习-特殊回文数 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2022年10月04日 0 点赞 0 评论 448 浏览 评分:9.9
1019-自由下落的距离计算 语言:C++ 摘要:解题思路:注意事项:参考代码:/*/2:n次求和:前n-1次 */#include<iostream>using namespace std;int main(){ double m; int n; …… 题解列表 2022年10月04日 0 点赞 0 评论 338 浏览 评分:0.0
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 评论 399 浏览 评分:0.0
报数问题的C++解法--暴力 摘要:解题思路:首先,输入该循环链表,在头结点指向为空时,即链表为空时,新增节点的指向就是其本身。以后新增节点以后,指针域保存的是第一个结点的地址。其次,进行排除。设置两个指针,分别为prev和p。p是pr…… 题解列表 2022年10月04日 0 点赞 0 评论 665 浏览 评分:9.5