随笔分类 -  高精度

摘要:uva 10494 - If We Were a Child AgainIf We Were a Child AgainInput:standard inputOutput:standard outputTime Limit:7seconds“Oooooooooooooooh!If I could do the easy mathematics like my school days!!I can guarantee, that I’d not make any mistake this time!!”Says a smart university student!!But his teach 阅读全文
posted @ 2013-07-13 16:00 Norcy 阅读(841) 评论(0) 推荐(0)
摘要:uva748 - ExponentiationExponentiationProblems 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 computer systems.This problem requires that you write a program to compute the e 阅读全文
posted @ 2013-07-12 15:05 Norcy 阅读(492) 评论(0) 推荐(0)
摘要:uva 465 - OverflowOverflowWrite a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be represented as a ``normal'' signed integer (typeintegerif you are working Pascal, typeinti 阅读全文
posted @ 2013-07-12 14:23 Norcy 阅读(1001) 评论(0) 推荐(0)
摘要:/*1.高精度加法2.高精度减法 3.高精度乘法 4.高精度除以低精度 5.高精度对低精度的取余 必要时可以将全局的int替换成long long.除了main函数的返回值int用到除法和取余的时候可能需要把全局的int替换成long long */#include #include #include #include using namespace std;#define maxn 30000struct bign{ int len, s[maxn]; bign() { memset(s, 0, sizeof(s)); len = 1; }... 阅读全文
posted @ 2013-07-12 14:12 Norcy 阅读(489) 评论(0) 推荐(0)