Life is filled with regrets. Ask anyone around you what their regrets are and they usually have no difficulty coming up with many items on their “regret list.” And for some reason our twenties are ripe...
分类:
移动开发 时间:
2015-08-10 09:29:50
阅读次数:
288
acm本文由swellspirit贡献ACM? I can accept failure. but I can't accept not trying. Life is often compared to a marathon, but I think it is more like being a...
分类:
其他好文 时间:
2015-08-09 15:31:13
阅读次数:
115
并查集
思路别人的
再设一个sex数组
记录与其性别不同的bug的编号
如果已经记录了
则将其和记录的值并到一起
以为性别相同
路漫漫其修远兮
下句忘了。。。
#include
#include
int set[2005];
int sex[2005];
int temp;
int find(int x)
{
return set[x]==x?x:set[...
分类:
其他好文 时间:
2015-08-07 11:05:25
阅读次数:
80
来源: POJ(Coursera声明:在POJ上完成的习题将不会计入Coursera的最后成绩。)注意: 总时间限制: 1000ms 内存限制: 65536kB描述甲壳虫的《A day in the life》和《Tomorrow never knows》脍炙人口,如果告诉你a day in the...
分类:
其他好文 时间:
2015-08-06 00:16:00
阅读次数:
1146
EJB是Enterprise Java Bean的缩写,一个Bean扮演着应用程序素材的角色。它包含有一个functional interface,一个life-cycle interface,以及一个实现它所支援的商业方法的类别。JavaBean是描述Java的软件组件模型,有点类似于Micros...
分类:
其他好文 时间:
2015-08-05 20:22:07
阅读次数:
130
Hard LifeTime Limit:8000MSMemory Limit:65536KTotal Submissions:7598Accepted:2191Case Time Limit:2000MSSpecial JudgeDescriptionJohn is a Chief Executiv...
分类:
其他好文 时间:
2015-08-04 00:12:48
阅读次数:
161
A Bug's LifeTime Limit:10000MSMemory Limit:65536KTotal Submissions:31006Accepted:10159DescriptionBackgroundProfessor Hopper is researching the sexual ...
分类:
其他好文 时间:
2015-08-03 18:32:44
阅读次数:
154
after work for almost two years, I have realize the truth notes can help a lot for us. avoiding my lazy life, I decide to sign something important up....
分类:
其他好文 时间:
2015-08-02 23:16:17
阅读次数:
111
和昨天晚上做的 A Bug‘s Life是一样思路的题···开始做的时候还是有些小问题,就在各种问题中进步吧。#include#define Size 100000int N, M;int Rel[Size+1], Pre[Size+1];void Init(){ for( int i...
分类:
其他好文 时间:
2015-07-31 09:00:01
阅读次数:
122
思路参考这里(较详细)一开始总是WA调了一晚上原来···Init初始化写在scanf上面了···哎╮(╯▽╰)╭anyway!对并查集的理解更深了一步!#include#includeusing namespace std;#define Size 2000struct node{ i...
分类:
其他好文 时间:
2015-07-31 01:02:48
阅读次数:
206