Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

你把同一条路径方块不同的摆法也算了好多,重复了

Posted by Ikki at 2005-08-04 10:47:22 on Problem 2523
In Reply To:谁来看一下这组数据的输出 ?? Posted by:littlelotus at 2005-08-04 10:33:34
> 4 6
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |** |** |** |** |** |
> | * | * | * | * | * | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |** |** |** |** |** |
> | * | * | * | * | * | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |** |** |** |** |** |
> | * | * | * | * | * | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |** |** |** |** |** |
> | * | * | * | * | * | * |
> +---+---+---+---+---+---+
> 
> 答案是
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * |   |
> |   |   | **|** | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> Number of solutions: 10
> 
> 但是我的是24  :
> 1
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** | **|** |   |   |
> |   | * | * | * |   |   |
> +---+---+---+---+---+---+
> |   | * | * | * |   |   |
> |   | **|** | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * |   |
> |   |   |   |   | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   | * |
> |   |   |   |   |   |** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 2
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** | **|** |   |   |
> |   | * | * | * |   |   |
> +---+---+---+---+---+---+
> |   | * | * | * |   |   |
> |   | **|** | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * |   |
> |   |   |   |   | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   | * |
> |   |   |   |   |   | **|
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 3
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * |   |
> |   |   | **|** | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   | * |
> |   |   |   |   |   |** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 4
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * |   |
> |   |   | **|** | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   | * |
> |   |   |   |   |   | **|
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 5
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** |   |   |   |
> |   |   | * |   |   |   |
> +---+---+---+---+---+---+
> |   |   | * |   |   |   |
> |   |   | **|** | **|** |
> |   |   |   | * | * | * |
> +---+---+---+---+---+---+
> |   |   |   | * | * | * |
> |   |   |   | **|** |** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 6
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** |   |   |   |
> |   |   | * |   |   |   |
> +---+---+---+---+---+---+
> |   |   | * |   |   |   |
> |   |   | **|** | **|** |
> |   |   |   | * | * | * |
> +---+---+---+---+---+---+
> |   |   |   | * | * | * |
> |   |   |   | **|** | **|
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 7
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|** | **|** |   |   |
> | * | * | * | * |   |   |
> +---+---+---+---+---+---+
> |   | * | * | * |   |   |
> |   | **|** | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * |   |
> |   |   |   |   | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   | * |
> |   |   |   |   |   |** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 8
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|** | **|** |   |   |
> | * | * | * | * |   |   |
> +---+---+---+---+---+---+
> |   | * | * | * |   |   |
> |   | **|** | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * |   |
> |   |   |   |   | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   | * |
> |   |   |   |   |   | **|
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 9
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|** |   |   |   |   |
> | * | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * |   |
> |   |   | **|** | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   | * |
> |   |   |   |   |   |** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 10
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|** |   |   |   |   |
> | * | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * |   |
> |   |   | **|** | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> |   |   |   |   |   | * |
> |   |   |   |   |   | **|
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 11
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|** |   |   |   |   |
> | * | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** |   |   |   |
> |   |   | * |   |   |   |
> +---+---+---+---+---+---+
> |   |   | * |   |   |   |
> |   |   | **|** | **|** |
> |   |   |   | * | * | * |
> +---+---+---+---+---+---+
> |   |   |   | * | * | * |
> |   |   |   | **|** |** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 12
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|** |   |   |   |   |
> | * | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** |   |   |   |
> |   |   | * |   |   |   |
> +---+---+---+---+---+---+
> |   |   | * |   |   |   |
> |   |   | **|** | **|** |
> |   |   |   | * | * | * |
> +---+---+---+---+---+---+
> |   |   |   | * | * | * |
> |   |   |   | **|** | **|
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 13
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **| **|** |   |   |   |
> | * | * | * |   |   |   |
> +---+---+---+---+---+---+
> | * | * | * |   |   |   |
> | **|** | **|** |   |   |
> |   |   |   | * |   |   |
> +---+---+---+---+---+---+
> |   |   |   | * |   |   |
> |   |   |   | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * | * |
> |   |   |   |   | **|** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 14
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **| **|** |   |   |   |
> | * | * | * |   |   |   |
> +---+---+---+---+---+---+
> | * | * | * |   |   |   |
> | **|** | **|** |   |   |
> |   |   |   | * |   |   |
> +---+---+---+---+---+---+
> |   |   |   | * |   |   |
> |   |   |   | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * |   |
> |   |   |   |   | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> 15
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** | **|** |   |   |
> |   | * | * | * |   |   |
> +---+---+---+---+---+---+
> |   | * | * | * |   |   |
> |   | **|** | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * | * |
> |   |   |   |   | **|** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 16
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** | **|** |   |   |
> |   | * | * | * |   |   |
> +---+---+---+---+---+---+
> |   | * | * | * |   |   |
> |   | **|** | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * |   |
> |   |   |   |   | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> 17
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * | * |
> |   |   | **|** | **|** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 18
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> | **|   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * |   |
> |   |   | **|** | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> 19
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** | **|** |   |   |   |
> | * | * | * |   |   |   |
> +---+---+---+---+---+---+
> | * | * | * |   |   |   |
> | **|** | **|** |   |   |
> |   |   |   | * |   |   |
> +---+---+---+---+---+---+
> |   |   |   | * |   |   |
> |   |   |   | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * | * |
> |   |   |   |   | **|** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 20
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** | **|** |   |   |   |
> | * | * | * |   |   |   |
> +---+---+---+---+---+---+
> | * | * | * |   |   |   |
> | **|** | **|** |   |   |
> |   |   |   | * |   |   |
> +---+---+---+---+---+---+
> |   |   |   | * |   |   |
> |   |   |   | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * |   |
> |   |   |   |   | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> 21
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** | **|** |   |   |
> |   | * | * | * |   |   |
> +---+---+---+---+---+---+
> |   | * | * | * |   |   |
> |   | **|** | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * | * |
> |   |   |   |   | **|** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 22
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** | **|** |   |   |
> |   | * | * | * |   |   |
> +---+---+---+---+---+---+
> |   | * | * | * |   |   |
> |   | **|** | **|** |   |
> |   |   |   |   | * |   |
> +---+---+---+---+---+---+
> |   |   |   |   | * |   |
> |   |   |   |   | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> 23
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * | * |
> |   |   | **|** | **|** |
> |   |   |   |   |   |   |
> +---+---+---+---+---+---+
> 24
> +---+---+---+---+---+---+
> |   |   |   |   |   |   |
> |** |   |   |   |   |   |
> | * |   |   |   |   |   |
> +---+---+---+---+---+---+
> | * |   |   |   |   |   |
> | **|** |   |   |   |   |
> |   | * |   |   |   |   |
> +---+---+---+---+---+---+
> |   | * |   |   |   |   |
> |   | **|** | **|** |   |
> |   |   | * | * | * |   |
> +---+---+---+---+---+---+
> |   |   | * | * | * |   |
> |   |   | **|** | **|** |
> |   |   |   |   |   | * |
> +---+---+---+---+---+---+
> Number of solutions: 24

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator