public static double Round( double
value,//要舍入的双精度浮点数。 int
digits//返回值中的小数数字。)将双精度浮点值按指定的小数位数舍入。说明:由于用十进制数表示浮点数或对浮点数进行算术运算可能导致的误差,在某些情况下,Round(Double,...
分类:
其他好文 时间:
2014-06-29 14:30:54
阅读次数:
222
1 import java.math.BigInteger; 2 import
java.util.*; 3 public class Main { 4 public static void main(String []args) 5 {
6 Scanner cin...
分类:
其他好文 时间:
2014-06-07 05:07:21
阅读次数:
222
MultipleTime Limit:2 SecMemory Limit:64
MBSubmissions:197Solved:35DescriptionRocket323loves math very much. One
day,Rocket323got a number string. He c...
分类:
其他好文 时间:
2014-06-07 04:33:31
阅读次数:
250
The right-hand sides of n-ary function and
predicate definition in canonical structure depend only on the
$\mathbf{a_i^{\circ}}$ and not on the $\math...
分类:
其他好文 时间:
2014-06-04 15:49:48
阅读次数:
179
Document
function figure1(){
var figure = money.value;
var wushi = Math.floor(figure/50);
var ershi = Math.floor(figure%50/20);
var shiyuan = Math.floor(figure%50%20/10);
var wuyuan...
分类:
编程语言 时间:
2014-06-03 03:13:19
阅读次数:
284
http://poj.org/problem?id=3101这道题就是求所有分子的最小共倍数和分母的最大公约数。 1 import
java.math.BigInteger; 2 import java.util.*; 3 import java.util.Arrays; 4 public
clas...
分类:
其他好文 时间:
2014-06-02 16:48:42
阅读次数:
255
【AES】
一种对称加密算法,DES的取代者。
加密相关文章见:
【代码】
代码比较多,有一部分非本文章内容代码,具体自己看吧。
package com.uikoo9.util.encrypt;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.Secure...
分类:
编程语言 时间:
2014-06-02 04:49:21
阅读次数:
426
两个事件独立性的定义是:事件A的发生对事件B的发生毫无影响,即从A的发生与否,我们不能推测出B是否发生。
从概率等式的表示来看就是B在A发生的情况下发生的概率等于B发生的概率本身。
进而引出了A与B同时发生的概率等于他们各自发生的概率的乘积。
从两事件的相互独立可以引出多个事件的独立性:
如果多个事件同时发生的概率等于他们各自发生的概率的乘积,那么他们是互相独立的。...
分类:
其他好文 时间:
2014-06-01 15:46:30
阅读次数:
321
title:
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.
翻译:
10以下的质数的和为2 + 3 + 5 + 7 = 17。
请求出200,0000以下所有质数的和。
import math,time
d...
分类:
其他好文 时间:
2014-06-01 09:12:31
阅读次数:
239
摩擦运动:逐渐变慢,最后停止缓冲运动:与摩擦力的区别:可以精确的停到指定目标点距离越远速度越大速度由距离决定速度=(目标值-当前值)/缩放系数Bug:速度取整值取整:iSpeed
= iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed); 1 2.....
分类:
Web程序 时间:
2014-05-29 23:36:27
阅读次数:
414