码迷,mamicode.com
首页 >  
搜索关键字:biginteger    ( 470个结果
大数加法
好久没写C程序,吃力啊,菜成狗。。。http://www.smartoj.com/p/1001 python四行代码java10多行,C居然写了70+,无聊ing。。。注意0000016+0000000000000003=19;  0+0=0;就是说忽略前导0的时候得考虑两个数都是0的情况。 其他的是个人都写得出。 import java.math.BigInteger; import ja...
分类:其他好文   时间:2014-12-03 21:32:47    阅读次数:200
UVa 10489 - Boxes of Chocolates
题目:有B个盒子,没个盒子中有a1个小盒子,每个小盒子里面还有a2个更小的盒子,...;             最小的盒子里有ak个巧克力,问把巧克力分给N个人后的余数。 分析:模拟,大整数乘法,余数运算。直接利用Java的大数类求解。 说明:(⊙_⊙)类名要是Main。 import java.util.Scanner; import java.math.BigInteger; ...
分类:其他好文   时间:2014-12-03 00:31:10    阅读次数:252
BigInteger
#include #include #include #includeusing namespace std;struct BigInteger { static const int BASE = 100000000; static const int WIDTH = 8; vector s; Bi...
分类:其他好文   时间:2014-12-01 12:50:27    阅读次数:212
java bigDecimal and double
Java BigDecimal和doubleBigDecimal是Java中用来表示任意精确浮点数运算的类,在BigDecimal中,使用unscaledValue × 10-scale来表示一个浮点数。其中,unscaledValue是一个BigInteger,scale是一个int。从这个表示方...
分类:编程语言   时间:2014-11-25 16:06:38    阅读次数:186
BASE64,MD5,SHA,HMAC加密與解密算法(java)
package com.ice.webos.util.security;import java.io.UnsupportedEncodingException;import java.math.BigInteger;import java.security.Key;import java.secur...
分类:编程语言   时间:2014-11-20 18:42:53    阅读次数:219
intellij—idea14 注册机
package com.qunar.fresh; import java.math.BigInteger; import java.util.Date; import java.util.Random; import java.util.zip.CRC32; public class keygen14 { private static final int version=14; ...
分类:其他好文   时间:2014-11-13 18:56:40    阅读次数:170
JAVA中大数常用的函数
声明为 BigInteger 的 java.math 中的字段 static BigInteger BigInteger. ONE BigInteger 的常量 1。 static BigInteger BigInteger. TEN BigInteger 的常量 10。 static BigInteger BigInteger. ZERO ...
分类:编程语言   时间:2014-11-13 10:55:27    阅读次数:202
JAVA的acm用法
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); BigInteger c = new BigInteger("0"); while(cin.h...
分类:编程语言   时间:2014-11-13 10:55:17    阅读次数:228
C++ BigInteger 大整数类模板(转)
#include #include #include #include #include using namespace std;class DividedByZeroException {};class BigInteger{ private: vector digits; ...
分类:编程语言   时间:2014-11-10 17:29:23    阅读次数:295
大数--几道水题,用来学学JAVA
几道水题,练习一下JAVA写大数 poj2305 Basic remains 大数可以直接用非十进制读入,读入的数在变量中是十进制的 输出的时候要先用BigInteger的toString方法转换为相应的进制 1 import java.math.*; 2 import java.ut...
分类:编程语言   时间:2014-11-08 23:24:05    阅读次数:254
470条   上一页 1 ... 37 38 39 40 41 ... 47 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!