Young naturalist Bill studies ants in school. His ants feed on plant-louses that live on apple trees. Each ant colony needs its own apple tree to feed ...
分类:
其他好文 时间:
2017-08-15 10:15:11
阅读次数:
144
因为经常写错题,找了个这个看看。。。 传送门:http://www.cnblogs.com/ZouCharming/p/3868844.html 我太垃圾了。。。 我出现过的错误: Wrong Answer(WA)Time Limit Exceeded(TLE)Memory Limit Exceed ...
分类:
其他好文 时间:
2017-08-13 18:41:06
阅读次数:
157
Case具有两种格式。简单Case函数和Case搜索函数。 简单Case函数 CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女' ELSE '其他' END --Case搜索函数 CASE WHEN sex = '1' THEN '男' WHEN sex = ' ...
分类:
其他好文 时间:
2017-08-10 21:00:11
阅读次数:
250
安卓工作室 android studio 汉化后,报错。 设置界面打不开。 Android studio has been sinified and reported wrong.The setup interface cannot be opened. 安卓工作室 android studio 版 ...
分类:
移动开发 时间:
2017-08-08 17:55:52
阅读次数:
320
(转自) http://moodycamel.com/blog/2013/a-fast-lock-free-queue-for-c++ Sharing data between threads in annoying. Really annoying. If you do it wrong, the ...
分类:
编程语言 时间:
2017-08-05 10:04:04
阅读次数:
225
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3038 解题思路:首先,由于序列数据可正可负,因此实际不满足情况的只有已知区间样例中所给出的那种情况类似。所以,使用并查集判断区间是否连通,使用前缀和来计算是否满足条件即可。 使用带权并查集,val数组记 ...
分类:
其他好文 时间:
2017-08-05 07:02:01
阅读次数:
219
案例: 在面向对象编程中,我们把方法作为对象的接口,自己访问对象的属性可能是不安全的,或设计上不灵活,但是使用调用方法在形式上不如访问属性简洁 繁: circle.getRadius() circle.setRadius(5.0) 简: circle.radius circle.radius = 5 ...
分类:
编程语言 时间:
2017-08-05 00:04:43
阅读次数:
238
上文描述了在出现大量fin-wait-1出现的原因,占用的内存等,这里讲一下如何处理这种情况。 首先,fin发送之后,有可能会丢弃,那么发送多少次这样的fin包呢?fin包的重传,也会采用退避方式,在2.6.358内核中采用的是指数退避,2s,4s,最后的 重试次数是由tcp_orphan_retr ...
分类:
其他好文 时间:
2017-08-04 10:06:47
阅读次数:
196
Technote (troubleshooting) Problem(Abstract) During insert from the CLP there is no codepage conversion if operating system codepage and database code ...
分类:
数据库 时间:
2017-08-02 10:20:57
阅读次数:
265
类与对象的异常 Cpp异常 #include <iostream> #include <string.h> using namespace std; //标识错误的类型 class wrong { }; int intdiv(int a, int b) { try { if (b==0) { thr ...
分类:
编程语言 时间:
2017-08-01 23:04:23
阅读次数:
186