高精度
小盼你最萌哒
这个作者很懒,什么都没留下…
展开
-
POJ 1001 Exponentiation 高精度指数
原题:: http://poj.org/problem?id=1001题目大意: 求a的b次方,注意要清楚后导0。c++不好写,java可以直接调用类。原创 2015-07-26 20:52:24 · 523 阅读 · 0 评论 -
HDU 2054 A == B ? 字符串比对
原题 http://acm.hdu.edu.cn/showproblem.php?pid=2054很简单的比较,A=B的时候输出YES。 但是会有哪些数据呢? 1 1? 1.0 1? 1.00 1.0? 0.0 0? 而且没有限制数据大小,这种情况下只有用高精度了。 首先我们需要看是否有小数点,并将有小数点的后导0全删掉,没有小数的时候小数点也删掉。 然后进行字符串比原创 2015-07-26 12:12:49 · 337 阅读 · 0 评论 -
c高精度加法模板
// abbey.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "stdio.h"#include "string.h"int max(int a,int b){ return a>b?a:b;}int min(int a,int b){ return a<b?a:b;}int main(){ con原创 2015-10-07 10:48:00 · 524 阅读 · 0 评论