题解列表

筛选

数据结构-堆排序-题解(C语言代码)

#按题目意思编写的代码```c#include#include//堆排序算法/*runthisprogramusingtheconsolepauseroraddyourowngetch,system("pause")orinputloop*/typedefstructHNode{int*data;in

[编程入门]阶乘求和-题解(C语言代码)

摘要:因为Sn=1!+2!+3!+4!+5!+…+n! 实际上就是1的!+2的!+到n n的乘阶就是 n-1的乘阶*n 所以 我们只需要在求n的乘阶的同时 在同一个循环之中将其加起来 例如 1*2*3……