Background
Trees are fundamental in many branches of computer science. Current state-of-the art parallel computers such as Thinking Machines' CM-5 are based on
fat trees. Quad- and octal-trees are f...
分类:
其他好文 时间:
2014-11-11 22:56:41
阅读次数:
239
1.需求
现在要制作一个游戏,玩家与计算机进行猜拳游戏,玩家出拳,计算机出拳,计算机自动判断输赢。
2.需求分析
根据需求,来分析一下对象,可分析出:玩家对象(Player)、计算机对象(Computer)、裁判对象(Judge)。
玩家出拳由用户控制,使用数字代表:1石头、2剪子、3布
计算机出拳由计算机随机产生
裁判根据玩家与计算机的出拳情况进行判断...
由树的直径定义可得,树上任意一点到树的直径上的两个端点之一的距离是最长的...
三遍BFS求树的直径并预处理距离.......
Computer
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3522 Acce...
分类:
其他好文 时间:
2014-11-11 21:12:20
阅读次数:
206
题目链接:点击打开链接
题意:
case数
n个模式串
一个母串。
问:n个模式串出现的种数(一个模式串多次出现只算一次)
对于 "ABC" , 若母串出现了"CBA"这样的反串,也算出现了。
所以:
1
ABC
CBA
ans = 1
#include
#include
#include
#include
#include
using namespace st...
分类:
Web程序 时间:
2014-11-11 00:53:31
阅读次数:
306
学电脑必懂的53个英文单词和缩写PC:个人计算机Personal Computer ·CPU:中央处理器Central Processing Unit ·CPU Fan:中央处理器的“散热器”(Fan) ·MB:主机板MotherBoard ·RAM:内存Random Access Memo...
分类:
其他好文 时间:
2014-11-10 21:45:36
阅读次数:
181
F -Computer Virus on Planet PandoraTime Limit:2000MSMemory Limit:128000KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 3695Appoint description:...
分类:
Web程序 时间:
2014-11-10 21:27:54
阅读次数:
270
Struts标签、Ognl表达式、el表达式、jstl标签库这四者之间的关系和各自作用 我之前虽然会用,但是一直分不清彼此之间有什么区别,所以查找资料,将它们进行整合区分,加深了解,一 介绍1.Struts2的作用 Struts2标签库提供了主题、模板支持,极大地简化了视图页面的编写,而且,st.....
分类:
Web程序 时间:
2014-11-09 22:13:07
阅读次数:
338
什么是回调 上一篇文章中讲了“函数的指针”,那么函数指针有什么用呢?一个最常用的地方就是回调。 什么回调?维基百科是这样解释的:回调是一段可执行的代码通过参数传递给别一段代码,以期望在一个合适的时间调用这个参数(可执行的代码)。 参考:In computer programming, a callback is a piece of executable code that is...
分类:
其他好文 时间:
2014-11-06 23:36:49
阅读次数:
248
Problem Description
In computer science, the longest increasing subsequence problem is to find a subsequence of a given sequence in which the subsequence's elements are in sorted order, lowest to hig...
分类:
其他好文 时间:
2014-11-06 21:57:19
阅读次数:
187
LibShortText 是林智仁老师继 libsvm、liblinear 之后的另一力作,主要有几大特征:It is more efficient than general text-mining packages. On a typical computer, processing and tr...
分类:
其他好文 时间:
2014-11-06 19:43:42
阅读次数:
579