感悟:这又是zimpha巨出的一场题,然后04成功fst(也就是这题) 实际上还是too young,要努力增加姿势, 分析:直接枚举这些数不好枚举,换一个角度,枚举x*d,也就是d的另一个乘数是多少 显然 x<=min(d,(n-1)/d),x还得是质数,最后发现x必须小于d的最小因子 然后预处理 ...
分类:
其他好文 时间:
2016-07-24 11:57:13
阅读次数:
169
The size of the hash table is not determinate at the very beginning. If the total size of keys is too large (e.g. size >= capacity / 10), we should do ...
分类:
其他好文 时间:
2016-07-23 07:27:57
阅读次数:
121
一、And 并列关系(and) in addition / and / similarly / likewise / as well as / besides / furthermore / also / moreover / too / not only ……but / even / beside ...
分类:
其他好文 时间:
2016-07-22 00:59:09
阅读次数:
289
运行这个JS在FF中会出现too much recursion错误,而在IE中会出现Stack Overflow错误,困惑我不少时间,经过搜索得知:原来JS的关键字不可以用来作为函数名的。所以解决方法是:把onchange函数名改为其他不是关键字的就行了。 ...
分类:
其他好文 时间:
2016-07-21 21:33:25
阅读次数:
189
错误描述: 错误代码: 1118Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check ...
分类:
数据库 时间:
2016-07-21 21:30:49
阅读次数:
2128
On mac os, programs may need Instruments to tuning, and when you face too many probe messages, you'll need some Flame Graphs. Here I introduce Brendan ...
分类:
其他好文 时间:
2016-07-21 12:35:24
阅读次数:
117
题目链接:http://www.codeforces.com/problemset/problem/71/A题意:将长字符串改成简写格式。C++代码: #include <string> #include <iostream> using namespace std; int n; string s ...
分类:
其他好文 时间:
2016-07-20 19:40:50
阅读次数:
110
按照从大到小,从主要到次要的形式,分析 mysql 性能优化点,达到最终优化的效果。 利用 mindmanger 整理了思路,形成如下图,每个点在网上都能找到说明,并记录下。形成了优化的思路: 1 连接 Connections 经常会遇见”mysql: error 1040: too many co ...
分类:
数据库 时间:
2016-07-19 18:58:01
阅读次数:
197
C# 代码 C# code? 1 2 3 4 5 6 7 8 9 String url="http://www.google.com.hk/search?hl=zh-CN&q=孟宪会"; System.Net.HttpWebRequest r = (System.Net.HttpWebRequest ...
分类:
其他好文 时间:
2016-07-19 09:33:30
阅读次数:
256
[root@zabbix~]#mysql-S/var/lib/mysql/mysql.sock
ERROR1040(HY000):Toomanyconnections使用gdb命令对mysql的max_connections进行更改:[root@zabbix~]#gdb-p$(cat/var/run/mysqld/mysqld.pid)-ex"setmax_connections=500"-batch
[NewLWP25797]
[NewLWP25794]
[NewLWP25793]
[N..
分类:
数据库 时间:
2016-07-15 17:25:36
阅读次数:
203