Page 1 of 1

10501 - Simplified Shisen-Sho

Posted: Tue Jul 15, 2003 3:01 pm
by dwyak
I can't understand what it means.
Can anybody give some explanation to me? :cry:
Thanks.

Posted: Tue Jul 15, 2003 4:07 pm
by Ghost77 dimen
In my viewpoint

________
| ##### |
@#####@
#######
#######
#######
####### in this situation the mark "@" can be removed
because it is connected by two v-lines and one h-line

@__###&
&&| &&&&
&&| &&&&
&&|____@ in this situation the mark "@" can also be removed
because it is connected by two h-lines and one v-line


the difference between the two cases is that
I draw the lines in the outer section of the grid in the first
and in the inner section of the grid in the second

the line can be draw in the spaces left by previous removed
tiles or the bound of the grid

if the tiles are adjoined you also can remove them
the problem says that ->
"(As a side effect, this also means that you can remove two tiles of the same picture that are next to each other in horizontal or diagonal."

I think the problemsetter want to express that in horizontal or vertical,
not diagnal.

Sorry, I am poor in English. :D

Posted: Wed Jul 23, 2003 5:05 am
by dwyak
Thank you very much. :D

Posted: Fri Jul 25, 2003 7:00 am
by windows2k
Anyone knows how to solve the problem quickly?
My thought is using BFS,but it can't be proved nothing left.

Posted: Thu Sep 11, 2003 6:10 am
by DemonCris
I have wondered the following statement:
(As a side effect, this also means that you can remove two tiles of the same picture that are next to each other in horizontal or diagonal.)
I think it should be "horizontal or vertical", right?
Is the mistake of the problem?

Posted: Fri Sep 12, 2003 8:58 am
by Ghost77 dimen
8)

I have indicated that in previous post.

Posted: Wed Dec 10, 2003 4:05 pm
by gush
just use DFS

10501

Posted: Thu Apr 20, 2006 4:08 pm
by fpavetic
hi, i am trying to solve 10501, but i just cant get my solution to work in time.
can anyone please give a hint? :roll:

Posted: Thu Dec 13, 2007 1:02 am
by adelar
Hi,
this problem accept multiple output?

thanks,

Re: 10501 - Simplified Shisen-Sho

Posted: Tue Sep 14, 2010 7:11 pm
by DD
Does anyone knows any tricky test data? I got lots of W.A. and didn't know why. Since the definition of this problem is not so clear, can anyone help me clarify the definition? Thanks!

Re: 10501 - Simplified Shisen-Sho

Posted: Thu Apr 07, 2011 6:14 am
by DD
Finally solve this problem. My previous W.A. version uses greedy strategy to eliminate pairs with backtracking. After adding backtrack into my program, I finally got A.C. :D

Re: 10501 - Simplified Shisen-Sho

Posted: Thu Jan 31, 2013 10:38 pm
by brianfry713
I got AC. There is only one test case. This problem has a special judge that accepts multiple outputs. The problem statement has some typos.

This line:
(As a side effect, this also means that you can remove two tiles of the same picture that are next to each other in horizontal or diagonal.)
Should be:
(As a side effect, this also means that you can remove two tiles of the same picture that are next to each other in horizontal or vertical.)

This line:
Each tile in the board is labeled after its position in the board, being (1,1) the upper left corner and (n,m) the lower left.
Should be:
Each tile in the board is labeled after its position in the board, being (1,1) the upper left corner and (n,m) the lower right.

Re: 10501 - Simplified Shisen-Sho

Posted: Sat Aug 18, 2018 5:15 pm
by metaphysis
The judge data may be a little weak, so using simple DFS can get AC.