码迷,mamicode.com
首页 >  
搜索关键字:高精度    ( 1735个结果
bzoj2656
题目链接:传送门 题目大意:已知 a0=0;a1=1; n为偶数 an=a(n/2);n为基数 an=a(n/2)+a(n/2+1); 题目思路:因为n过大,所以要用java高精度,还有最多20组数据,所以记忆化搜索一下 ...
分类:其他好文   时间:2016-07-10 13:59:14    阅读次数:129
[复习]高精度算法
今天又复习了一下高精度(高精度减、加、乘) 仍然用结构体来存储 数据结构: typedef struct HP{ int w[10001] //储存数据,0下标储存有多少位 }HP; 注意:高精度为了进位需要反着存储 例如:原数 a 123 -int 高精度数 b 3 |2|1 –int[] 先将最 ...
分类:编程语言   时间:2016-07-10 12:28:29    阅读次数:195
数学计数原理(Pólya,高精度):SGU 294 He's Circles
He's Circles He's Circles He wrote n letters "X" and "E" in a circle. He thought that there were 2n possibilities to do it, because each letter may be ...
分类:其他好文   时间:2016-07-09 17:50:39    阅读次数:416
1166 矩阵取数游戏[区间dp+高精度]
1166 矩阵取数游戏 2007年NOIP全国联赛提高组 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题解 1166 矩阵取数游戏 2007年NOIP全国联赛提高组 1166 矩阵取数游戏 2007年NOIP全国联赛提高组 时间限制: 1 s 空间限制: 128 ...
分类:其他好文   时间:2016-07-07 17:01:50    阅读次数:193
高精度减法
#include<stdio.h>#include<string.h>char s1[1000],s2[1000];//定义全局变量int a[1000]={0},b[1000]={0},c[1000]={0},k,j;int main(){int l1=0,l2=0,l=0,i;//定义局部变量s ...
分类:其他好文   时间:2016-07-07 13:03:31    阅读次数:117
a*b(高进度乘以int类型的数)
以下是我今日的a-b(高精度)的程序,\(^o^)/偶也偶也偶也偶也! 程序: #include<stdio.h> #include<string.h> char s[1000]; //定义一个字符数组 int a[1000]={0}; //定义一个int类型的数组 int main() { int ...
分类:其他好文   时间:2016-07-07 12:47:57    阅读次数:118
高精度加法
#include<stdio.h> #include<string.h> char s1[1000], s2[1000];//定义字符数组 int a[1000]={0},b[1000]={0},c[1000]={0};//定义int数组 int main() { int l1=0,l2=0,l=0 ...
分类:其他好文   时间:2016-07-07 08:35:28    阅读次数:169
高精度乘法 7——6
§: #include<stdio.h> #include<string.h> int a[1000]={0}; char s1[1000]; int main() { int i,l,t,x=0; scanf("%d%s",&t,s1); l=strlen(s1); for(i=0;i<=l-1; ...
分类:其他好文   时间:2016-07-06 21:48:20    阅读次数:135
HDU 4704 Sum (高精度+快速幂+费马小定理+二项式定理)
Sum Time Limit:1000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 4704 Sum Submit Status Practice HDU 4704 Descript ...
分类:其他好文   时间:2016-07-06 21:42:54    阅读次数:124
真真真·?高精度乘法!!!!!
RX-0奉上哈哈哈哈哈哈哈哈哈哈哈哈哈??? 先奉上真真真·高精度乘法源代码: 高精度乘法 RX-0制作最后修改:2016年7月6日#include<stdio.h>#include<string.h>#include<math.h>char s[10000],b;int a[10000];int ...
分类:其他好文   时间:2016-07-06 21:39:00    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!