使用管理员用户运行命令: mysql> show [full] processlist; # full是可选的,如果不加,默认只显示前100条结果。 可以靠这个结果来分析一些诸如用户连接状况之类的信息。譬如我当初用Navicat去连公司的远程数据库服务器,出现如下报错: Lost connectio ...
分类:
数据库 时间:
2017-12-13 23:28:22
阅读次数:
129
题目: 给几个点,用绳子圈出最大的面积养牛,输出最大面积/50 题解: Graham凸包算法的模板题 下面给出做法 1.选出x坐标最小(相同情况y最小)的点作为极点(显然他一定在凸包上) 2.其他点进行极角排序<极角指从坐标轴的某一方向逆时针旋转到向量的角度>, 极角一样按距离从近到远(可以用叉积实 ...
分类:
其他好文 时间:
2017-12-13 11:26:34
阅读次数:
180
I thought it would be an easy one, but found myself lost with 34 opened tabs on stackoverflow... The problem : keep it ordered Usually, obtaining a Qu ...
分类:
编程语言 时间:
2017-12-11 13:58:15
阅读次数:
450
MySql 有时我们导入sql文件,文件过大,导致Error Code: 2013 Lost connection to MySQL server during query这种错误 执行以下: [sql] view plain copy print?SHOW GLOBAL&nb ...
分类:
数据库 时间:
2017-12-10 11:16:31
阅读次数:
215
经常需要所以要频繁用到"ctrl+s"保存还是挺麻烦的,所以有的人需要用到失去焦点自动保存功能,这里简单记录下 1、点击"Preferences"里的设置-用户,有的版本是英文 2、ctrl+f找到“save_on_focus_lost”,把后面的"false"改成“true”就好 ...
分类:
其他好文 时间:
2017-12-07 14:52:49
阅读次数:
183
P2952 [USACO09OPEN]牛线Cow Line 题目描述 Farmer John's N cows (conveniently numbered 1..N) are forming a line. The line begins with no cows and then, as tim ...
分类:
其他好文 时间:
2017-12-03 22:50:57
阅读次数:
211
Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of them are facing forward, like good cows. Some of them are facing backward, th ...
分类:
其他好文 时间:
2017-12-03 18:57:51
阅读次数:
149
Description The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, Paper, Scissors ...
分类:
其他好文 时间:
2017-11-28 13:30:17
阅读次数:
192
题目描述 In an effort to better manage the grazing patterns of his cows, Farmer John has installed one-way cow paths all over his farm. The farm consists ...
分类:
其他好文 时间:
2017-11-26 15:52:32
阅读次数:
172
P3119 [USACO15JAN]草鉴定Grass Cownoisseur 题目描述 In an effort to better manage the grazing patterns of his cows, Farmer John has installed one-way cow path ...
分类:
其他好文 时间:
2017-11-26 11:14:57
阅读次数:
163