其实是很水的一道bfs,用字符串表示每个状态,map判重就ok了。
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5012
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define N 7
using namespace std...
分类:
其他好文 时间:
2014-09-17 23:21:32
阅读次数:
206
Dice
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 577 Accepted Submission(s): 335
Problem Description
There are 2 special dic...
分类:
其他好文 时间:
2014-09-17 18:47:52
阅读次数:
319
Number Sequence
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 697 Accepted Submission(s): 332
Special Judge
Problem Description
...
分类:
其他好文 时间:
2014-09-16 18:58:03
阅读次数:
203
These are two different concepts, you cannot compare them. What the difference between the skunk and the moonlight?Null pointer is a special reserved ...
分类:
其他好文 时间:
2014-09-16 06:00:20
阅读次数:
216
当时想到了贪心,但是不知为何举出了反列。。。。我是逗比,看了点击打开链接。才发现我是逗比。
Problem Description
There is a special number sequence which has n+1 integers. For each number in sequence, we have two rules:
● ai ∈ [0,n]
●...
分类:
其他好文 时间:
2014-09-16 02:44:19
阅读次数:
276
Number Sequence
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 545 Accepted Submission(s): 258
Special Judge
Problem Description
...
分类:
其他好文 时间:
2014-09-15 21:24:49
阅读次数:
341
Problem Description
There is a special number sequence which has n+1 integers. For each number in sequence, we have two rules:
● ai ∈ [0,n]
● ai ≠ aj( i ≠ j )
For sequence a and sequence b,...
分类:
其他好文 时间:
2014-09-15 21:22:10
阅读次数:
240
Dice
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 440 Accepted Submission(s): 259
Problem Description
There are 2 special dic...
分类:
其他好文 时间:
2014-09-15 21:18:59
阅读次数:
218
Ann has recently started commuting by subway. We know that a one ride subway ticket costs
a rubles. Besides, Ann found out that she can buy a special ticket for
m rides (she can buy it several times...
分类:
其他好文 时间:
2014-09-15 10:05:28
阅读次数:
320
WalkTime Limit: 30000/15000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 266Accepted Submission(s): 183 Special Judg...
分类:
其他好文 时间:
2014-09-15 09:51:58
阅读次数:
167