![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
大数
RikkaTheWorld
一个OTAKU
展开
-
51nod 1005 大数加法
题目链接:这里写链接内容 因为题目说给定的数可以是负数,就相当这个题包括了加法和减法 加法减法的借位原理都一样,中间改了n遍,终于过了 代码又臭又长代码如下:(这次加了注释进去)#include<cstdio>#include<cstring>#include<iostream>#include<algorithm>#include<cmath>using namespace std原创 2016-11-30 20:02:25 · 738 阅读 · 0 评论 -
51nod 1057 N的阶乘
题目链接:这里写链接内容 大数阶乘,一脸懵逼, 大神的代码,说是压进去,这几天都在看。#include<cstdio>#include<iostream>#include<algorithm>#include<cstring>#include<cmath>using namespace std;#define N 10000#define mod 100000int a[N];原创 2016-11-30 21:50:24 · 383 阅读 · 0 评论