高精度
ujn20161222
persistence
展开
-
2018_2_1_Super long sums _大数基础题2
https://vjudge.net/problem/UVA-10013#include #include #include #include #include using namespace std; const int N=1e6+10; int a[N]; int main(){ int n; scanf("%d",&n); int m,z=1; while(n--){ i原创 2018-02-01 08:54:59 · 230 阅读 · 0 评论 -
2018_1_27_Adding Reversed Numbers_大数不熟的来做
Adding Reversed Numbers Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 18873 Accepted: 10147 Description The Antique Comedians of Malidinesia prefer comedie原创 2018-01-27 20:05:22 · 273 阅读 · 0 评论 -
2018_2_2_Heritage_打表_数学
Heritage Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7622 Accepted: 2873 Description Your rich uncle died recently, and the heritage needs to be divided原创 2018-02-02 21:37:00 · 169 阅读 · 0 评论 -
2018_2_2_Fibonacci Numbers_打表大数_暴力
https://vjudge.net/problem/UVA-10579 #include #include #include #include #include const int N=2000; using namespace std; ofstream out; struct bignumber{ int len; int c[N]; void setnum(char s[]原创 2018-02-02 17:14:33 · 161 阅读 · 0 评论 -
2018_2_2_How Many Fibs? _打表
How many Fibs? Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12413 Accepted: 4431 Description Recall the definition of the Fibonacci numbers: f1 := 1 f原创 2018-02-02 19:18:33 · 132 阅读 · 0 评论 -
2018_2_2_Fibonacci Numbers暴力的代码
https://vjudge.net/problem/UVA-10579 #include #include #include #include #include char a[4700][1100]={ "1","1","2","3","5","8","13","21","34","55","89","144","233","377","610","987","1597","258原创 2018-02-02 17:11:08 · 503 阅读 · 0 评论 -
2018_2_2_Simple Arithmetics_模拟_大数_输出_大综合_不容易
耐心做,祝你好运 改天再写一遍 Simple Arithmetics Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 2195 Accepted: 526 Description One part of the new WAP portal is also a原创 2018-02-02 15:50:50 · 312 阅读 · 0 评论 -
2018_2_1_If We Were a Child Again_模拟除、取余
https://vjudge.net/problem/UVA-10494 这个题我之前的bug是,对于第二个数是个位数的时候 #include #include #include #include #include #include #include using namespace std; #define ll unsigned long long const int N=100000原创 2018-02-01 21:56:16 · 155 阅读 · 0 评论 -
2018_2_1_NUMBER BASE CONVERSION_数制转换
注意如何取余,折腾了半天 NUMBER BASE CONVERSION Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 5649 Accepted: 2568 Description Write a program to convert numbers in on原创 2018-02-01 20:52:02 · 164 阅读 · 0 评论 -
2018_2_1_Exponentiation_国债精度_小数乘模拟
注意整数无点 Exponentiation Time Limit: 500MS Memory Limit: 10000K Total Submissions: 175835 Accepted: 42458 Description Problems involving the computation of exact values o原创 2018-02-01 13:33:26 · 168 阅读 · 0 评论 -
2018_2_1_product_数组模拟_大数乘
https://vjudge.net/problem/UVA-10106 #include #include #include #include #include using namespace std; const int N=500+10; struct bignumber{ private: int a[N]; int len; public: bignumber(){原创 2018-02-01 08:11:16 · 182 阅读 · 0 评论 -
2018_2_1_Integer Inquiry_大数基础题
Integer Inquiry Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 35350 Accepted: 13778 Description One of the first users of BIT's new supercomputer was Chip原创 2018-02-01 08:30:02 · 169 阅读 · 0 评论 -
2018_1_27_Very Easy !!!_不错的大数乘法,可当模板
https://vjudge.net/problem/UVA-10523 #include #include #include #include using namespace std; const int maxlen=500; const int maxs=5; class bignumber{ private: int a[maxlen]; int len; public: bi原创 2018-01-27 21:30:16 · 278 阅读 · 0 评论