wrong answervar n,k,i,j,jj,min:longint; f:array[0..99,0..99]of longint; t:array[1..5]of longint; d,a:array[0..99]of longint; b:array[1..99...
分类:
其他好文 时间:
2015-05-17 11:57:18
阅读次数:
116
Potential Pythonic PitfallsMonday, 11 May 2015Table of ContentsNot Knowing the Python VersionObsessing Over One-LinersInitializing a set the Wrong Way...
分类:
编程语言 时间:
2015-05-14 20:07:18
阅读次数:
254
hi,My EnCase version is v7 and I found a terrible issue about index search in Unallocated area. Without Internet Evidence Finder I could not the truth...
分类:
其他好文 时间:
2015-05-13 00:30:25
阅读次数:
174
学做imooc上的计算器APP练习的时候出现了两个布局重叠的情况 这是因为我们下载的Eclipse一般会自动使用的布局是RelativeLayout,即相对布局.? 此时需要把RelativeLayout改为LinearLayout? 但是直接修改后它会报...
分类:
其他好文 时间:
2015-05-11 09:14:57
阅读次数:
148
我的主力博客:半亩方塘下面内容系原创,转载请务必注明地址主要參考资料:我在 Stackoverflow 上提的问题Why the first is right but the second is wrong ?这令人纠结的两行代码例如以下:const char *cval = "nothing"; ...
分类:
其他好文 时间:
2015-05-09 20:15:52
阅读次数:
113
Maybe you think this problem is about girls and ladies.
But you’re wrong. ‘Left dress’ means ‘Eyes left’. It’s used in armed forces. It will make a square more orderly.
Now several soldiers stand in...
分类:
其他好文 时间:
2015-05-07 22:18:31
阅读次数:
118
#includestdio.h#includemath.h#includewindows.hint right=0;int wrong=0;void add(){int a,b,c;a=rand()%100;b=rand()%100;printf("请回答:\n\t\t %d + %d = ",a,...
分类:
其他好文 时间:
2015-05-07 18:26:56
阅读次数:
121
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3038
题意:给出两个数N和M代表有N个数个M组数据
N个数是未知的,然后M组数据每组数据形如:l r x
代表位置l和位置r之间的数的和为x,最后求出M组数据中有
几组是与上面冲突的。
分析:这道题我直接就知道是带权并查集的题,原因是我直接按带权并查
集找的题,所以在这不能为诸君讲述有此类...
分类:
其他好文 时间:
2015-05-07 08:56:53
阅读次数:
137
Oracle Linux 5.9到Oracle Linux 6.4 之间的bug--Wrong Kernel Statistic in Version 2.6.39-400.X.X...
分类:
数据库 时间:
2015-05-05 19:38:02
阅读次数:
219
num[i]代表i到根节点的值
这道题一开始竟然以为是线段树= =!后来发现线段树无法进行子区间的维护
#include
#include
#include
using namespace std;
const int maxn = 222222;
int fa[maxn],num[maxn];
int find_father(int u){
if(fa[u] == u)
...
分类:
其他好文 时间:
2015-05-04 22:04:26
阅读次数:
108