码迷,mamicode.com
首页 >  
搜索关键字:高精度    ( 1735个结果
java.math.BigDecimal类的用法
在java中提供了大数字的操作类,即java.math.BinInteger类和java.math.BigDecimal类。这两个类用于高精度计 算,其中BigInteger类是针对大整数的处理类,而BigDecimal类则是针对大小数的处理类。下边我们介绍Big...
分类:编程语言   时间:2015-08-11 19:31:06    阅读次数:367
hdu-2116-Has the sum exceeded
Problem Description As we all know, in the computer science, an integer A is in the range of 32-signed integer, which means the integer A is between -2^31 and (2^31)-1 (inclusive), and A is a 64-signe...
分类:其他好文   时间:2015-08-10 22:15:49    阅读次数:186
URAL 1035 Lucky Tickets
题意:长度为2n的数字,前N位之和和后面的一样,,,加一起是s........问有多少种不同的数字 首先s是奇数肯定就不行了。。。。 然后n*2*9 dp[i][j]+=dp[i-1][j-k];就是加的这位不同的情况·~~~ 这题要用高精度,,,, #include #include #include #include using namespace std...
分类:其他好文   时间:2015-08-09 12:31:06    阅读次数:142
Codeforces Gym 100418A A - A+-B java高精度
A -A+-BTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/contest/view.action?cid=86686#problem/ADescriptionYou are given the int...
分类:编程语言   时间:2015-08-07 21:38:39    阅读次数:153
Codeforces Gym 100342D Problem D. Dinner Problem Dp+高精度
Problem D. Dinner ProblemTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100342/attachmentsDescriptionA group of k students from C...
分类:其他好文   时间:2015-08-06 20:05:05    阅读次数:375
HDU 5351——MZL's Border——————【高精度+找规律】
MZL's BorderTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 944Accepted Submission(s): 306Problem ...
分类:其他好文   时间:2015-08-06 12:49:57    阅读次数:107
HDU 5351 MZL's Border(找规律+高精度)
MZL's Border Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 895    Accepted Submission(s): 287 Problem Description As is known to...
分类:其他好文   时间:2015-08-05 20:30:01    阅读次数:134
高精度运算——java
java大法 java的框架。 import java.io.*;import java.util.*;import java.math.*;public class Main{ public static void main(String []args){ Scanner cin=new S...
分类:编程语言   时间:2015-08-05 17:41:24    阅读次数:138
hdu 5351 MZL's Border 打表+高精度
MZL's BorderTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 462Accepted Submission(s): 127Problem ...
分类:其他好文   时间:2015-08-04 22:21:07    阅读次数:98
北大ACM1503——Integer Inquiry
这题,很简单,高精度加法。 写的比较冗长。还可以缩短代码。输入的时候,直接加起来,最后取余输出。 下面的是AC的代码: #include #include #include using namespace std; char ans[200]; char temp[150]; void add() { int length1 = strlen(ans); int length2...
分类:其他好文   时间:2015-08-03 14:35:04    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!