Problem X
Huge Mod
Input: standard input
Output: standard output
Time Limit: 1 second
The operator for exponentiation is different from the addition, subtraction, multiplication or division opera...
分类:
其他好文 时间:
2014-08-25 11:55:14
阅读次数:
249
题目链接:Clicke Here~
java解决大数就是爽阿!~
以前大数模板敲啊敲的,敲了半天发现一交果断wrong。只从学会了java妈妈在不用担心我遇到大数了/
这道题遇到的Java函数有:
stripTrailingZeros() 去掉后缀0
toPlainString() 返回大数的非科学计数法
startsWith()
s...
分类:
编程语言 时间:
2014-08-09 21:36:19
阅读次数:
371
Description
Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many ...
分类:
其他好文 时间:
2014-07-31 17:08:06
阅读次数:
267
//算法:获得无小数点的输入串,然后对该串进行普通的高精度乘法运算
//运算得到结果后,添加小数点,最后除去串头和串尾的0即可
#include
#define MAXN 200
char R[10];
char E[6];//寄存无小数点的输入串
char temp[MAXN];
char ans[MAXN];//寄存答案串
int n,left;
void multip();
int ...
分类:
其他好文 时间:
2014-07-31 00:08:15
阅读次数:
269
Problem Description
Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for m...
分类:
其他好文 时间:
2014-07-21 11:17:56
阅读次数:
155
题目计算实数a的n次方,具体输出格式看案例import java.util.*;import java.math.*;public class Main { public static void main(String[] args) { Scanner in = new Sca...
分类:
编程语言 时间:
2014-07-18 21:06:14
阅读次数:
198
POJ做的非常好,本题就是要求一个无限位大的指数乘法结果。要求基础:无限大数位相乘额外要求:处理特殊情况的能力 -- 关键是考这个能力了。所以本题的用例特别重要,再聪明的人也会疏忽某些用例的。本题对程序健壮性的考查到达了变态级别了。某人贴出的測试用例数据地址:http://poj.org/showm...
分类:
其他好文 时间:
2014-07-06 18:37:08
阅读次数:
183
JAVA大数....
xx.stripTrailingZeros().toPlainString() 去末尾的0并不用科学计数法显示
Exponentiation
Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 6740...
分类:
其他好文 时间:
2014-06-29 20:31:02
阅读次数:
146
hdu 1063 Exponentiation 高精度数 模拟乘法...
分类:
其他好文 时间:
2014-05-02 22:17:12
阅读次数:
289