/*The Dragon of Loowater
Description
Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.
The shores of Rellau Creek in central Loowater had always been a p...
分类:
其他好文 时间:
2014-08-21 19:28:44
阅读次数:
212
/** * *----------Dragon be here!----------/ * ┏┓ ┏┓ * ┏┛┻━━━┛┻┓ * ┃ ┃ * ┃ ━ ┃ * ┃ ┳┛ ┗┳ ┃ * ┃ ┃ * ┃ ┻ ┃ * ┃ ...
分类:
其他好文 时间:
2014-08-21 18:43:34
阅读次数:
168
Problem C: The Dragon of Loowater
Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.
The shores of Rellau Creek in central Loowater had always been a prime...
分类:
其他好文 时间:
2014-08-21 17:23:54
阅读次数:
153
1 Mid-Autumn Festival eg. The Dragon Boat Festival is one of three major Chinese holidays,along with the Spring and Moon Festivals.端午节是三个中国主要节日之一,另两个是...
分类:
其他好文 时间:
2014-08-19 00:46:53
阅读次数:
242
Cow BowlingTime Limit:1000MSMemory Limit:65536KTotal Submissions:13481Accepted:8909DescriptionThe cows don't use actual bowling balls when they go bow...
分类:
其他好文 时间:
2014-08-13 14:50:36
阅读次数:
174
题意大概就是八数码问题,只不过把空格的移动方式改变了:空格能够向前或向后移动一格或三格(循环的)。分析:其实跟八数码问题差不多,用康托展开记录状态,bfs即可。代码:#include #include #include #include #include #include #include #inc...
分类:
其他好文 时间:
2014-08-12 21:28:14
阅读次数:
236
Problem Description
Mery has a beautiful necklace. The necklace is made up of N magic balls. Each ball has a beautiful value. The balls with the same beautiful value look the same, so if two or more ...
分类:
其他好文 时间:
2014-08-12 17:29:44
阅读次数:
253
题目链接:
啊哈哈,点我点我
题意:就是给了m个限制条件,然后形式是啊a,b就是说编号为a的小球比编号为b的小球青,最后输出字典序最小的序列出来。
思路:如果正常的正向建图的话,有可能得到的不是字典序最小的序列。。比如有这样一个例子1->5->4,6->2->3,如果正向建图得到的序列将会是
5 2 1 3 4 6,,而正确的序列式怎么感觉碰到一些题目按字典序都要逆向枚举啊。。1 3...
分类:
其他好文 时间:
2014-08-12 00:44:13
阅读次数:
258
There is one last gate between the hero and the dragon. But opening the gate isn't an easy task.
There were n buttons list in a straight line in front of the gate and each with an integer on it. Like...
分类:
其他好文 时间:
2014-08-11 21:22:33
阅读次数:
341
Problem Description
This is a simple game.The goal of the game is to roll two balls to two holes each.
'B' -- ball
'H' -- hole
'.' -- land
'*' -- wall
Remember when a ball rolls into a hole, the...
分类:
其他好文 时间:
2014-08-11 21:22:12
阅读次数:
308