摘要:A Knight's Journey Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 47516 Accepted: 16161 Description Background The knight is getting bored
阅读全文
摘要:B. Beautiful Divisors time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Recently Luba lear
阅读全文
摘要:A. Chess For Three time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Alex, Bob and Carl wil
阅读全文
摘要:Robot Motion Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 14641 Accepted: 7032 Description A robot has been programmed to follow the ins
阅读全文
摘要:Crashing Robots Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11233 Accepted: 4753 Description In a modernized warehouse, robots are used
阅读全文
摘要:一开始本姑娘想来一波神奇的操作让二叉树甘拜于我的键盘之下,然鹅发现,我去,二叉树原来这么奇葩。 然后呢,本姑娘就下定决心从简单的开始写,我就不信,指针都被我啃下来了,二叉树我还搞不定你,哼~
阅读全文
摘要:Parencodings Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 27375 Accepted: 16094 Description Let S = s1 s2...s2n be a well-formed string
阅读全文
摘要:Y2K Accounting Bug Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16154 Accepted: 8111 Description Accounting for Computer Machinists (ACM
阅读全文
摘要:Power of Cryptography Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 26249 Accepted: 13121 Description Current work in cryptography involv
阅读全文
摘要:一个很简单的模拟题吧,但是我都不是很懂,好菜啊。。。
阅读全文
摘要:最近越来越感觉到c语言指针的强大~~ 循环队列的实现
阅读全文
摘要:Radar Installation Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 93433 Accepted: 20855 Description Assume the coasting is an infinite str
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2364 题意:从唯一的起点‘@’出发,输出到达边界的步数,如果不能到达,输出-1。每走下一步,优先选择转弯的方向,只能直走(两边都是障碍物)时,才选择直走方向,重点是,不能往回走。 判断能否下一步转弯的思路是:先将
阅读全文
摘要:The Pilots Brothers' refrigerator Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 27522 Accepted: 10625 Special Judge Description The game
阅读全文
摘要:输入一棵二叉树的先序遍历和中序遍历,输出它的后序遍历序列。 运行如图 目前还有一些细节没有懂,不过不影响我仍然喜欢学习的心情~
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3336 题意:给你一个字符串,问字符串每一个前缀在字符串中的出现总次数。 思路:kmp的应用,自身和自身进行匹配,每次匹配时,如果没有匹配到结束,模式串按next数组向后移动,出现匹配至结束的情况,匹配串往后移动一
阅读全文
摘要:运行截图。 自己太久没有这样用过指针了,总是用不好~~ 下次自己申请了一个指针,就得初始化,不然在判断是否为空的操作下,会导致程序停止运行。(传说中的敲代码5分钟,debug2小时又被我碰上了,泪目)。
阅读全文
摘要:Flip Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 47766 Accepted: 20383 Description Flip game is played on a rectangular 4x4 field
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2087 http://acm.hdu.edu.cn/showproblem.php?pid=3746
阅读全文