摘要: http://www.bianchengla.com/course/ds/practise/problem?id=1489 就是求一个大整数的阶乘 1 #include<stdio.h> 2 #include<string.h> 3 #include<iostream> 4 using namespace std; 5 #define N 210 6 #define M 1000 7 char str[N][M]; 8 int a[M],b[30],c[4*M]; 9 void ca()10 {11 int i;12 int k;13 str[0][0]=& 阅读全文
posted @ 2012-01-05 16:27 AC_Girl 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://poj.grids.cn/practice/2736/ 很简单的一个大整数减法题,主要是想做大整数除法题目,看了网上的资料说是要用到大整数减法,所以就拿来练练手了 1 #include<stdio.h> 2 #include<string.h> 3 #include<iostream> 4 using namespace std; 5 #define N 110 6 char str1[N],str2[N]; 7 int a[N],b[N],c[N]; 8 int main() 9 {10 int n,i,j;11 int len1,len2; 阅读全文
posted @ 2012-01-05 16:22 AC_Girl 阅读(280) 评论(0) 推荐(0) 编辑