假如让你写一个排序,你会怎么写呢?for循环搞定吗?来看下边这个是怎么实现的:function quickSort(arr){ if(arr.length<=1){ return arr; } var num = Math.floor(...
分类:
编程语言 时间:
2015-12-09 23:03:15
阅读次数:
234
1.python模块 模块是函数的扩展,函数是一段程序,模块是一段程序块 模块都是放在python的lib文件夹下,他封装了一系列功能,我们自定义的模块也是放在这里 导入模块 import math math.pi3.141592653589793sys模块 官方提供的自带模块,叫做标准库模...
分类:
编程语言 时间:
2015-12-09 17:09:42
阅读次数:
233
JDBC Type Java Type CHAR String VARCHAR String LONGVARCHAR String NUMERIC java.math.BigDe...
分类:
数据库 时间:
2015-12-08 22:20:52
阅读次数:
245
function timeDown(second) { var month = '', day = '', hour = '', minute = ''; if (second >= 86400 * 30) { month = Math.fl...
分类:
编程语言 时间:
2015-12-08 18:08:12
阅读次数:
182
import java.io.*;import java.util.*;import java.text.*;import java.math.*;public class Main{ public static void main(String []args) { Scanner cin = ne...
分类:
编程语言 时间:
2015-12-08 02:02:54
阅读次数:
181
ublic class 随机数 { public static void main(String[] args) { for(int s=1;s<=7;s++){ int x=(int)(Math.random()*36); if(x!=0){ ...
分类:
其他好文 时间:
2015-12-06 21:05:36
阅读次数:
149
import java.math.BigInteger;public class Rational extends Number implements Comparable { private BigInteger numerator;// 分子 private BigInteger denomin...
分类:
编程语言 时间:
2015-12-06 19:10:45
阅读次数:
150
我写了一个gcd TL该。然后调用math内gcd,AC该、、、思维:它是采取n前面的最小公倍数和n求 1~n的最小公倍数代码:import java.util.Scanner;import java.math.*;public class Main{ public static void main...
分类:
编程语言 时间:
2015-12-06 17:36:26
阅读次数:
156
public static int gcd(int a, int b) { int n1 = Math.abs(a); int n2 = Math.abs(b); int remainder = n1 % n2; while (remainder > 0) { n1 = n2; n2 ...
分类:
其他好文 时间:
2015-12-06 11:13:46
阅读次数:
116
eval(z='p=""/* ,.oq#+ ,._, */;for(y in n="zw24l6k\4e3t4jnt4qj24xh2 x/* =i;i+=.05)wi\th(Math)x-= /* aem1k.com Q###KWR#### W[ */.05,0\x;)p+="...
分类:
Web程序 时间:
2015-12-05 17:27:12
阅读次数:
192