
高精度
wang_hoho
这个作者很懒,什么都没留下…
展开
-
ZOJ - 3987 - Numbers (高精度,贪心)
Numbers Time Limit: 2 Seconds Memory Limit: 65536 KB DreamGrid has a nonnegative integer . He would like to divide into nonnegative integers and minimizes their bitwise or (i.e.原创 2017-12-19 15:59:59 · 453 阅读 · 0 评论 -
NOIP2005普及组第4题 循环(高精度)
题目描述乐乐是一个聪明而又勤奋好学的孩子。他总喜欢探求事物的规律。一天,他突然对数的正整数次幂产生了兴趣。众所周知,2的正整数次幂最后一位数总是不断的在重复2,4,8,6,2,4,8,6……我们说2的正整数次幂最后一位的循环长度是4(实际上4的倍数都可以说是循环长度,但我们只考虑最小的循环长度)。类似的,其余的数字的正整数次幂最后一位数也有类似的循环现象:循环循环长度22、4、8、6433、9、7...原创 2018-03-17 21:44:28 · 1457 阅读 · 0 评论 -
HDU - 1042 - N!(高精度)
#include <iostream> #include <string.h> #include <stdio.h> using namespace std; typedef long long LL; LL ans[10000]; const LL mod = 1e9; int main() { int n, size; while(scanf...原创 2018-04-09 12:57:20 · 187 阅读 · 0 评论 -
C++大数高精度运算
const int maxn = 1e5 + 10; struct BigInteger{ int len, num[maxn]; // maxn 要比数字最长可能长度大 // 在存储时是倒着存,从 1 开始 BigInteger(){len = 0; memset(num,0,sizeof num);} BigInteger friend operator + ...原创 2018-07-18 09:33:11 · 663 阅读 · 0 评论 -
2018年全国多校算法寒假训练营练习比赛(第三场)- E - 进击吧!阶乘(高精度)
链接:https://www.nowcoder.net/acm/contest/75/E 来源:牛客网 题目描述 给定一个整数N(0≤N≤10000),求取N的阶乘 输入描述: 多个测试数据,每个测试数据输入一个数N 输出描述: 每组用一行输出N的阶乘 #include <iostream> #include &l...原创 2018-02-05 19:44:59 · 153 阅读 · 0 评论