摘要:
话说这道题纠结了很久,,先写了一道类似的题,写这道题时感觉很难,,今天上午蓦然发现,,,,,,理解错题意了,,我去。。。。害我想了那么长时间。这道题主要就是判断一下有没有环,还有就是节点数减去边数等于1,还有就是一个集合,,空集合时也符合题意,这样就可以了。。。。。题目:小希的迷宫Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9415Accepted Submission(s): 2757Problem Description上次G... 阅读全文
阅读排行榜
Android获取屏幕大小的方法
2012-04-07 21:09 by javaspring, 236 阅读, 收藏,
摘要:
Display dis=this.getWindowManager().getDefaultDisplay();这是屏幕色宽为 dis.getWidth();屏幕的高度为 dis.getHeight(); 阅读全文
2488_A Knight's Journey
2012-03-10 00:15 by javaspring, 236 阅读, 收藏,
摘要:
A Knight's JourneyTime Limit:1000MSMemory Limit:65536KTotal Submissions:18356Accepted:6181DescriptionBackgroundThe knight is getting bored of seeing the same black and white squares again and again and has decided to make a journeyaround the world. Whenever a knight moves, it is two squares in o 阅读全文
多线程二 多线程中的隐蔽问题揭秘
2012-08-23 11:12 by javaspring, 235 阅读, 收藏,
摘要:
上一篇《多线程一 CreateThread与_beginthreadex本质区别》中讲到一个多线程报数功能。为了描述方便和代码简洁起见,我们可以只输出最后的报数结果来观察程序是否运行出错。这也非常类似于统计一个网站每天有多少用户登录,每个用户登录用一个线程模拟,线程运行时会将一个表示计数的变量递增。程序在最后输出计数的值表示有今天多少个用户登录,如果这个值不等于我们启动的线程个数,那显然说明这个程序是有问题的。整个程序代码如下:#include <stdio.h>
#include <process.h>
#include <windows.h> volat 阅读全文
lucene3.5以上版本jar包模块的用处(分词+分组+高亮+搜索提示)
2012-08-22 09:40 by javaspring, 235 阅读, 收藏,
摘要:
lucene3.5以上版本jar包模块的用处(分词+分组+高亮+搜索提示)免费的源码demo http://download.csdn.net/detail/yjflinchong/4291818analyzers : 各种分词器 以国家、语言、功能进行分类http://download.csdn.net/detail/yjflinchong/4291723http://download.csdn.net/detail/yjflinchong/4291717grouping : 分组统计 ,可以对各Field进行几个级别的搜索结果中field值的统计 http://download.csdn. 阅读全文
浙公网安备 33010602011771号