ACM 高精度
15zhazhahe
打杂小能手/吃/喝/睡/胖/菜/
展开
-
poj2389 Bull Math
题目链接:http://poj.org/problem?id=2389 题意:给你两个数,让你输出相乘的结果 解析:高进度乘法,c++用数组来模拟,java用BigInteger#include <string> #include <cstring> #include <cstdio> #include <iostream> using namespace std; const int maxn原创 2017-07-09 22:31:14 · 375 阅读 · 0 评论 -
hdu1002 A + B Problem II
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002 题意:a+b,高精度加法 解析:c++用数组模拟加法,java就用自带的BigInteger C++代码#include <bits/stdc++.h> using namespace std; const int maxn = 1205; int a[maxn],b[maxn]; int原创 2017-07-09 22:32:17 · 343 阅读 · 0 评论