本文我们介绍MySQL数据库表空间和索引的查看方法,并详细地给出了其代码,接下来我们一一介绍。1.查看索引(1)单位是GB SELECT CONCAT(ROUND(SUM(index_length)/(1024*1024*1024), 2), ' GB') AS 'Tot...
分类:
数据库 时间:
2014-08-05 21:51:30
阅读次数:
294
String
Problem Description
You hava a non-empty string which consists of lowercase English letters and may contain at most one '?'. Let's choose non-empty substring G from S (it can be G = S...
分类:
其他好文 时间:
2014-08-05 19:29:50
阅读次数:
240
准备工作: 先插入100万条数据for(i=0;i<=1000000;i++){ db.users.insert({ "i":i, "username":"user"+i, "age":Math.floor(Math.random()...
分类:
数据库 时间:
2014-08-05 13:54:29
阅读次数:
268
$filename = 'D://WWW/1.jpg';$p = 5;// Get new sizeslist($width, $height) = getimagesize($filename);$newwidth = $width;$newheight = floor($height / $p)...
分类:
Web程序 时间:
2014-08-05 13:50:19
阅读次数:
644
题目链接题意 : 一个m面的骰子,掷n次,问得到最大值的期望。思路 : 数学期望,离散时的公式是E(X) = X1*p(X1) + X2*p(X2) + …… + Xn*p(Xn)p(xi)的是所有最大值是xi的情况数/总情况数一共是m^n种,掷n次,所有最大值是xi的情况数应该是xi^n,但是这里...
分类:
其他好文 时间:
2014-08-05 10:44:59
阅读次数:
217
hdu4908 & BestCoder Round #3 BestCoder Sequence(组合数学)...
分类:
其他好文 时间:
2014-08-04 21:44:38
阅读次数:
308
BestCoder Sequence
Problem Description
Mr Potato is a coder.
Mr Potato is the BestCoder.
One night, an amazing sequence appeared in his dream. Length of this sequence is odd, the median...
分类:
其他好文 时间:
2014-08-04 17:42:57
阅读次数:
282
1. HDU 4907:http://acm.hdu.edu.cn/showproblem.php?pid=4907 中文题我就不说题意了,直接说解题思路吧! ① 第一种思路就是我比赛时的思路,将a数组先全部清为零,当输入机器在ti时间执行第i个任务时,将a[ti]置为1,开始输入q(表示在q时间有...
分类:
其他好文 时间:
2014-08-04 17:26:27
阅读次数:
260
Task schedulehttp://acm.hdu.edu.cn/showproblem.php?pid=4907 1 #include 2 #include 3 #define mt(a,b) memset(a,b,sizeof(a)) 4 const int M=200010; 5 int ...
分类:
其他好文 时间:
2014-08-04 17:01:07
阅读次数:
211