码迷,mamicode.com
首页 >  
搜索关键字:高精度    ( 1735个结果
【个人模板】高精度算法
一、求两个高精度正数的和差积 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int MAXN=1000; 7 char s1[MAXN],s2[MAXN]; 8 int ed1,ed2,n1,n2...
分类:编程语言   时间:2015-07-02 22:21:11    阅读次数:205
[转]当 1/999999999999999999999998999999999999999999999999 时,奇迹发生了!
原文:http://www.futilitycloset.com/2015/06/28/made-to-order-4/当高精度计算 1/999999999999999999999998999999999999999999999999,把小数位展开,每隔24个数,可以发现居然是Fibonacci数列...
分类:其他好文   时间:2015-07-02 11:57:06    阅读次数:261
高精度模板
高精度模板,留个备份: 1 #include 2 #include 3 4 struct BigNumber 5 { 6 static const long long BASE = 1000000000; 7 static const int BASEDIGS =...
分类:其他好文   时间:2015-06-30 14:22:13    阅读次数:118
JAVA中数值在计算机中的表示方式
很多刚学习JAVA的童鞋不明白为什么int型有时候强转为byte时会变为负数。这是因为不明白JAVA中数值的表示机制。JAVA中规定用二进制补码的方式表示一个负数。有了上面的概念之后我们就知道为什么高精度转换低精度类型时有时会变成负数。比如 int 232转为byte时值 变为-24转换过程如下:2...
分类:编程语言   时间:2015-06-27 21:23:10    阅读次数:152
SGU 299.Triangle
题意: 给出n(<=1000)条线段的长度ai(<=10^500),输出任意三条能组成三角形的边.没有输出3个0.Solution: 简单题.只是要处理高精度. java大法好.import java.util.*;import java.math.*;public class Soluti...
分类:其他好文   时间:2015-06-24 00:43:19    阅读次数:114
如何构建高精度室内定位系统
高精度室内定位需要的技术室内GIS展示室内导航技术高精度定位传感器高精度定位算法平面gis的三维转换技术6.平台网络管理这里的关键是高精度定位传感技术.可定位的方式gps,北斗gps,蓝牙,空间定位算法
分类:其他好文   时间:2015-06-23 23:21:28    阅读次数:230
HDU 2940 Hex Factorial (简单高精度)
题意:求一n!的16进制表示的0的个数。 高精度模拟,或者直接java即可。这里可以给一个高精度模板。 #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const in...
分类:其他好文   时间:2015-06-21 18:39:45    阅读次数:104
HDU 2424-Gary's Calculator
表达式求值。 手动模拟吧。可以用站维护,这里我没用到栈来写。注意不能gets()  输入有换行。 还要用到高精度,套一个模板。 #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace st...
分类:其他好文   时间:2015-06-21 18:39:42    阅读次数:157
SGU 269. Rooks(DP)
题意: 给n(<=250)条水平网格,然后在上面放k棋子,每行每列都只能放一个。求方法总数。Solution: 简单的DP, 只要对给出的水平长度排个序就很容易处理了。 需要用到高精度。偷懒用java写了import java.util.*;import java.math.*;publi...
分类:其他好文   时间:2015-06-21 14:18:00    阅读次数:112
poj 2305 Basic remains 高精度取余
题意: 裸的高精度取余。 分析: http://blog.csdn.net/sepnine/article/details/44092055有poj 1220任意进制转换的代码,这题用到其中的一部分,可作对比。 代码: //poj 2305 //sep9 #include using namespace std; int b,m; char s1[1024],s2[16],ans[16...
分类:其他好文   时间:2015-06-19 18:55:26    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!