高精度
神探特斯拉
这个作者很懒,什么都没留下…
展开
-
HDOJ 1002 高精度加法
A + B Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 290083 Accepted Submission(s): 55742Problem DescriptionI have原创 2016-01-17 15:29:15 · 438 阅读 · 0 评论 -
白书练习 小学生算数
// main.cpp// 小学生算数//// Created by 张嘉韬 on 16/1/28.// Copyright © 2016年张嘉韬. All rights reserved.//#include #include using namespace std;int init(int a原创 2016-01-28 10:46:07 · 422 阅读 · 0 评论 -
白书练习 高进度类编写
//// main.cpp// 高精度运算类bign//// Created by 张嘉韬 on 16/1/28.// Copyright © 2016年 张嘉韬. All rights reserved.//#include #include using namespace std;const int maxn=1000;struct bign{ int原创 2016-01-29 00:10:48 · 324 阅读 · 0 评论 -
HDOJ 1018 Big Number
Problem DescriptionIn many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you ar原创 2016-01-29 22:31:53 · 290 阅读 · 0 评论 -
HDOJ 1042 N!
Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to the end of file. OutputFor each N, output N! i原创 2016-01-30 12:34:58 · 308 阅读 · 0 评论 -
HDOJ 1133 Buy the tickets!
Problem DescriptionThe "Harry Potter and the Goblet of Fire" will be on show in the next few days. As a crazy fan of Harry Potter, you will go to the cinema and have the first sight, won’t you?原创 2016-02-02 16:30:47 · 423 阅读 · 0 评论 -
白书练习 高精度阶乘
//// main.cpp// 高精度阶乘//// Created by 张嘉韬 on 16/1/28.// Copyright © 2016年 张嘉韬. All rights reserved.//#include #include using namespace std;const int maxn=3000;int main(int argc, const c原创 2016-01-28 22:17:49 · 393 阅读 · 0 评论 -
高精度总结(高精度类和重载运算高精度阶乘)
一.高精度类和重载运算注意重载的运算符只会对判断为bign类型的数据发生改变,不影响其他类型的使用。#include#include #includeusing namespace std;const int maxn = 200;struct bign{ int len, s[maxn]; bign() { memset(s, 0, sizeof(s));转载 2016-05-07 11:30:01 · 450 阅读 · 0 评论