Numeric constants are high-precisionvalues.An untyped constant takes the type needed by its context.Try printingneedInt(Big)too.package main import "f...
分类:
其他好文 时间:
2014-10-26 21:08:04
阅读次数:
192
DescriptionIn the field of computer science, forest is important and deeply researched , it is a model for many data structures . Now it’s your job he...
分类:
其他好文 时间:
2014-10-26 15:35:34
阅读次数:
169
最近一个项目,用到了图表,找了很多,发现Highcharts 这个纯js的图表插件非常好用,功能强大。做个笔记,备用。基本构成,见图:在上图中,显示了做图表时最常配置的几个项目:xAxisX坐标yAxisy坐标Credits版权信息legend图例exporting导出选项Title 标题too.....
分类:
其他好文 时间:
2014-10-26 11:28:33
阅读次数:
210
1、 sys.dm_tran_session_transactions 为每一个没有关闭的事务返回一行。session_id 可以与sys.dm_exec_connections.session_id 关联。2、 sys.dm_exec_connections 为每一个连接返回一行。most...
分类:
数据库 时间:
2014-10-25 10:30:27
阅读次数:
245
1、 sys.dm_tran_locks; 为每一把锁返回一行、request_session_id 可以与sys.dm_tran_session_transactions \sys.dm_exec_connections相关联。 request_status 查看锁的分配情况2、 sys....
分类:
数据库 时间:
2014-10-25 10:23:49
阅读次数:
178
水一水。。import java.math.*;
import java.util.*;
import java.io.*;
public class Main {
BigInteger[] fib = new BigInteger[505];
public void work(){
fib[1] = BigInteger.ONE;
fib[2] = BigIntege...
分类:
编程语言 时间:
2014-10-24 20:50:50
阅读次数:
181
n!=x*b^y,
当x为正整数时,最大的y就是n!末尾0的个数了,
把n,b分别拆成素因子相乘的形式:
例如,
n=5,b=16
n=5,b=2^4,
很明显,末尾0的个数为0
10进制时,n!=a*10^x
b进制时,n!=c*b^y
很明显,n!的位数就是最大的x+1
这里计算我用了log,精度设置为1e-9
#include...
分类:
其他好文 时间:
2014-10-24 20:47:09
阅读次数:
320
可达矩阵的K次幂便是从i到j走K步能到达的方案数。注意处理k=0的情况。#include #include #include #include #include #include #include #include #include #include using namespace std; #de...
分类:
其他好文 时间:
2014-10-24 20:36:54
阅读次数:
191
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-10-24 18:07:56
阅读次数:
170
people = 20cats = 30dogs = 15if people cats: print "Not many cats! The world is saved!"if people dogs: print "The world is dry!"dogs += 5if people...
分类:
其他好文 时间:
2014-10-24 18:01:42
阅读次数:
159