2845: 求10000以内n的阶乘 重载运算符好看 摘要:解题思路:高精度模拟大整数 乘法、输出注意事项:参考代码:#include <iostream> // #include <sstream> // #include <cstdio> // #i…… 题解列表 2023年02月14日 0 点赞 0 评论 363 浏览 评分:8.0
阶乘!z==0无意义 摘要:解题思路:注意事项:参考代码:z=int(input()) y=zi=1if z ==0: print(1)else: while i<z: &n 题解列表 2023年12月04日 0 点赞 1 评论 439 浏览 评分:9.0
(高精度阶乘)求10000以内n的阶乘(超详细) 摘要:解题思路:高精度阶乘原理在于保存(i-1)的数,因为在本题中即使使用longlong型也只能求到20!,所以我们以数组去保存高精度的数,因为只要定义了数组长度就可以填充很大的数注意事项:这里的思想采用…… 题解列表 2022年11月15日 2 点赞 0 评论 1358 浏览 评分:9.9
编写题解 2845: 求10000以内n的阶乘 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; import java.math.BigInteger; public class Main { …… 题解列表 2024年03月06日 0 点赞 0 评论 310 浏览 评分:9.9
双向链表实现大数阶乘 摘要: 双向链表实现大数阶乘参考代码:#include<stdio.h> #include<stdlib.h> // 使用双向链表做阶乘 struct Fac { int num; str…… 题解列表 2023年11月14日 0 点赞 0 评论 244 浏览 评分:9.9
求10000以内n的阶乘(c语言版本) 摘要:解题思路:注意事项:初始化 a[1]=1,len=1参考代码:#includeint main(){ int n,i,j,k,len=1,a[100000]={0};//len长度一开始定为 …… 题解列表 2023年02月17日 0 点赞 0 评论 603 浏览 评分:9.9
题解 2845: 求10000以内n的阶乘 摘要:```c #include int main() { int a[100000] = { 0 }; a[1] = 1; int len = 1;//len代表最高位 int n;…… 题解列表 2023年12月17日 3 点赞 0 评论 437 浏览 评分:10.0
求10000以内n的阶乘(c语言) 摘要:解题思路:循环里嵌套一个乘法:把大数a存到数组里,让数组的每一个数都乘以另一个数b,数值溢出就向前进位。注意事项:参考代码:#include<stdio.h>intmain(v…… 题解列表 2025年05月08日 1 点赞 0 评论 290 浏览 评分:10.0