随笔分类 - 算法-高精度计算
摘要:#include #include #include using namespace std; const int len = 1010; void print(int a[]) { for(int i=1;i='0' && ch='A' && ch='a' && ch=n) { a[i+1]++; a[i]%=n; ...
阅读全文
摘要:#include #include #include #include using namespace std; int myMax(int x,int y){ return x>y?x:y; } void print(int a[],int end) { cout =end;i--) cout b[0]) return 1; if(a[0]-x+1=x;i--) {...
阅读全文
摘要:时间限制: 1Sec 内存限制: 128MB 提交: 49 解决: 15 时间限制: 1Sec 内存限制: 128MB 提交: 49 解决: 15 时间限制: 1Sec 内存限制: 128MB 提交: 49 解决: 15 题目描述 给出一个整数 n(n< 10^30) 和 k 个变换规则(k< =1
阅读全文
摘要:时间限制: 1Sec 内存限制: 128MB 提交: 279 解决: 88 时间限制: 1Sec 内存限制: 128MB 提交: 279 解决: 88 时间限制: 1Sec 内存限制: 128MB 提交: 279 解决: 88 题目描述 输入两个整数a和b,输出这两个整数的和。a和b都不超过100位
阅读全文
摘要:时间限制: 1Sec 内存限制: 128MB 提交: 102 解决: 56 时间限制: 1Sec 内存限制: 128MB 提交: 102 解决: 56 时间限制: 1Sec 内存限制: 128MB 提交: 102 解决: 56 题目描述 输入一个正整数n,输出n!的值。 其中n!=1*2*3*…*n
阅读全文

浙公网安备 33010602011771号