大数问题
夜幕下的ACM之路
通往成功的路注定是孤独的,我不会放弃!!!!
展开
-
HDU 1042 N!(大数阶乘)
本题看着为大数的模板题目,挺简单的。 下面是模仿某位大神的代码#include<stdio.h> void main() { int i,j,m,n; while(scanf("%d",&n)!=EOF) { if(n<0) continue; int a[10000]={0}; m=0;原创 2016-03-02 20:59:25 · 492 阅读 · 0 评论 -
哈理工OJ 2170 大斐波那契数(大数加法)
#include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int f[1005][300]; int main() { int n,pi; scanf("%d",&n); while(n--) { int t;//用t计录第一个不为零数的位置原创 2016-02-25 20:55:24 · 731 阅读 · 0 评论 -
哈理工OJ 1159 MAGI System(大数乘法)
原题地址:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1159 下面是AC代码:#include <stdio.h> #include <string.h> int main() { char strNum1[1000],strNum2[1000],strNum3[2000]; w原创 2016-05-15 18:07:33 · 422 阅读 · 0 评论