http://acm.hdu.edu.cn/showproblem.php?pid=1856真的无语了,一个并查集的水题,竟然做了两个多小时,我都怀疑我自己了,还有智商么?题意,找出最多认识人的集合我手残了N次 ,本题1000ms,数组10000000,所以要用哈希查找#include #inclu...
分类:
其他好文 时间:
2014-07-07 15:22:49
阅读次数:
185
在现有类和结构体的类型基础上,扩展新的功能。 语法:extension SomeType{// new functionality to add to SomeType goes here}An extension can extend an existing type to make itadopt one or more protocols.Where this is the case,the...
分类:
其他好文 时间:
2014-07-02 07:36:22
阅读次数:
244
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2014-07-01 23:43:03
阅读次数:
293
原理:最外层放水平平铺的背景,第二层放左边,第三层放右边,注意这个做法背景图不能透明结构: 样式:.module-title { height:33px; background: url(../images/more-title.png) 0 -33px repeat-x; text-inden.....
分类:
Web程序 时间:
2014-07-01 18:23:28
阅读次数:
235
As long as you know, the purpose of the bag that you want to buy, everything goes, and you can get a good deal. For more information, click on this li...
分类:
其他好文 时间:
2014-07-01 18:13:09
阅读次数:
210
补充些Python方面的文化,文章翻译自http://legacy.python.org/dev/peps/pep-0020/ 同步于http://polarisary.github.io/2014/07/01/the-zen-of-python/Beautiful is better than u...
分类:
编程语言 时间:
2014-07-01 16:49:20
阅读次数:
221
CountDownLatch,api 文档:http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CountDownLatch.html A synchronization aid that allows one or more ...
分类:
编程语言 时间:
2014-07-01 13:56:08
阅读次数:
427
今天遇到了一个奇葩的问题,我把我的sdk tools的版本升级到23后,我在eclipse中尝试升级ADT,发现了这么一个问题,下面分析下原因:
当我在eclipse中选择Help-->Check for updates时,会弹出一个框,如下:
首先解释下这个错误出现的原因:
Eclipse在check for updates时,是根据下图列表中所有的Available Softwa...
分类:
系统相关 时间:
2014-07-01 11:13:52
阅读次数:
441
开始所有的灯是灭的,不过我们只关心最后一个灯。在第i次走动时,只有编号为i的倍数的灯的状态才会改变。也就是说n有偶数个约数的时候,最后一个灯的状态不会改变,也就是灭的。n有奇数个约数的时候也就是n为完全平方数的时候,最后一个灯会是亮的。最后抽象出来,就是判断输入的数是否为完全平方数。Light, m...
分类:
其他好文 时间:
2014-07-01 10:19:44
阅读次数:
202
Problem B: Repeat NumberTime Limit:1 SecMemory Limit:32 MBDescriptionDefinition: a+b = c, if all the digits of c are same ( c is more than ten),then w...
分类:
其他好文 时间:
2014-06-30 14:59:33
阅读次数:
508