题解 1155: C语言训练-阶乘和数*

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

C语言训练-阶乘和数*

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int long i = 1, t=1,sum=0; int  s = 1; int a; int k = 0……

笨蛋循环方法

摘要:解题思路:将所有数值分为9组,1开头,2开头,3开头...对每组所有数字依序求阶乘验证...注意事项:用字符串将数值每一位单独拆分出来比较方便。参考代码:#include<stdio.h>#inclu……

C语言训练—阶乘和数*

先找符合条件的数字,然后再排序就可以了。```c#include//最大限制#defineMAX_LIM100000intmain(){//阶乘数组intfact[]={1,1,2,6,24,120,720,5040,40320,362880};//idx是rs的最后一个元素后一个元素//rs一行是每

记录一蛤TxT

摘要:采用的是循环遍历,没有按照题目要求输出。没有注释TAT  单纯记录一下#include<stdio.h>#include<math.h>#include<string.h>#include<ctype……

解 1155: C语言训练-阶乘和数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int jc(int n);    int sum, a;    for ……

C语言训练-阶乘和数*

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main(){ int a,b,c,d,e,f[100],g=0,h,i,j,k[1……

jiechenheshu11111111000

摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include  "math.h"int  J(int n) //求阶乘{ if (n == 1||n==0)return 1; i……