二级C语言-阶乘数列-题解(C语言代码) 摘要:```c #include double f(int n){ //double if(n==1){ return 1; //return 1; }else{ r…… 题解列表 2019年11月06日 0 点赞 0 评论 693 浏览 评分:9.9
发工资咯 (贪心法) 摘要:``` #include using namespace std; int Dno[6]={100,50,10,5,2,1};//面额大小 int sum(int x){ int y=0…… 题解列表 2019年11月07日 0 点赞 0 评论 1411 浏览 评分:9.9
The 3n + 1 problem -题解(C语言代码) 摘要:本题,我想最坑的地方就是那个比较两个输入数之间的大小了吧,而且还要以原顺序输出,所以一定要注意,不能只考虑到输如1 10,输出1 10 20,如果输入10 1的情况,也要输出10 1 20哦!下面呢,…… 题解列表 2019年11月07日 0 点赞 1 评论 1541 浏览 评分:9.9
蓝桥杯基础练习VIP-2n皇后问题-题解(C++代码) 摘要:```cpp // 问题1460:2n皇后 #include using namespace std; int n; const int SIZE=10; int map[SIZE][…… 题解列表 2019年11月08日 0 点赞 1 评论 599 浏览 评分:9.9
[编程入门]阶乘求和-题解(C语言代码) 摘要:因为Sn=1!+2!+3!+4!+5!+…+n! 实际上就是1的!+2的!+到n n的乘阶就是 n-1的乘阶*n 所以 我们只需要在求n的乘阶的同时 在同一个循环之中将其加起来 例如 1*2*3…… 题解列表 2019年11月08日 0 点赞 2 评论 1429 浏览 评分:9.9
蓝桥杯算法训练VIP-拦截导弹 (O(n*log n)量级) 摘要:``` #include #include #include using namespace std; bool cmp(int x,int y ){ return x>y; } int …… 题解列表 2019年11月08日 0 点赞 0 评论 1147 浏览 评分:9.9
数据结构-堆排序-题解(C语言代码) 摘要:#按题目意思编写的代码 ```c #include #include //堆排序算法 /* run this program using the console pauser or…… 题解列表 2019年11月09日 0 点赞 2 评论 1347 浏览 评分:9.9
数据结构-KMP算法中的模式串移动数组-题解(C语言代码) 摘要:解题思路: 该题是求kmp算法中的next数组,建议初学者先学习BF算法(这个是效率低下的,它需要回溯)而kmp算法主串每次比较失配后就不需要再回溯了,不懂下面的代码可以点击下方链接去哔哩哔哩上看小…… 题解列表 2019年11月09日 0 点赞 0 评论 819 浏览 评分:9.9
数据结构-KMP字符串模式匹配算法实现-题解(C语言代码) 摘要:解题思路: ```c # include # include int main() { int index_kmp(char *S,char *T,int pos); int n=0…… 题解列表 2019年11月09日 0 点赞 0 评论 691 浏览 评分:9.9
13.快速排序练习 (Java代码) 摘要: import java.util.Scanner; public class Main { public static void quickSort(i…… 题解列表 2019年11月09日 0 点赞 0 评论 704 浏览 评分:9.9