10503 - The dominoes solitaire

All about problems in Volume 105. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 10503 - The Dominoes Solitaire

Post by brianfry713 » Wed Mar 20, 2013 12:13 am

Input:

Code: Select all

1
2
5 2
3 1
2 3
3 1
2
3
4 6
0 6
1 3
2 2
0 3
4
6
5 2
6 5
5 1
0 5
5 3
2 3
0 1
2 2
2
2
0 5
3 6
2 6
1 2
3
4
1 0
2 1
4 4
3 1
6 2
5 4
10
11
4 5
0 3
3 5
3 2
2 3
0 4
0 2
3 0
0 5
4 4
2 0
1 1
4 5
10
13
1 0
6 4
0 4
0 4
0 3
5 1
6 0
0 3
1 6
2 4
6 6
6 0
1 6
3 5
4 3
4
4
5 3
5 1
3 4
5 5
0 1
1 1
9
12
3 0
4 4
4 3
3 3
3 3
2 3
4 4
5 4
5 6
0 4
1 4
0 2
3 6
6 0
1
13
3 4
1 3
0 0
1 3
0 3
4 2
6 0
2 2
1 5
2 0
4 0
2 1
5 3
3 5
1 4
7
7
2 4
2 6
2 0
2 4
4 0
5 6
6 4
0 0
1 6
1
1
1 3
6 6
2 4
8
9
5 4
6 4
1 5
6 0
2 4
2 1
5 6
1 1
6 5
4 1
1 0
1
2
0 0
3 1
0 2
4 3
2
13
2 2
2 0
2 1
0 2
1 4
3 5
1 3
2 3
1 5
4 4
2 3
5 4
5 5
6 3
2 0
4
13
3 4
3 2
4 5
2 3
6 4
5 4
0 1
4 0
2 1
5 0
2 5
1 1
4 0
6 6
2 4
14
14
2 5
3 2
3 4
6 3
0 1
0 4
3 5
0 2
2 5
1 3
4 5
3 3
2 6
2 2
2 4
0 1
3
3
4 3
4 3
4 4
6 5
1 4
10
10
1 1
2 0
5 2
3 4
4 2
2 3
5 6
5 2
4 5
6 0
2 0
4 4
1
7
2 1
4 1
1 0
0 3
3 3
1 4
4 0
3 3
0 4
1
3
5 5
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2 0
3 6
3 6
4 6
5 2
1 0
3 6
5 5
3 0
2 5
4
12
6 3
1 6
1 4
2 6
4 4
2 4
2 0
0 3
4 6
6 5
2 3
6 0
0 1
4 3
1
1
3 4
3 2
6 2
2
3
6 6
1 3
4 6
3 3
0 2
3
8
3 6
4 3
2 2
3 5
3 6
3 6
1 0
0 4
6 0
4 5
11
11
3 6
2 3
5 4
4 3
0 4
5 5
0 5
1 0
6 2
6 4
2 0
4 1
6 3
1
2
4 4
3 0
2 5
2 3
6
13
2 4
2 5
3 0
0 1
1 2
4 4
4 0
1 0
1 1
0 6
3 0
5 3
1 4
0 5
4 2
2
6
3 4
5 0
6 4
6 3
6 0
5 3
1 3
3 0
3
3
0 3
6 0
4 4
2 6
6 4
10
14
4 3
3 3
0 0
1 0
5 4
6 0
2 4
2 0
1 5
6 6
6 6
3 6
3 1
3 6
3 2
5 6
0
AC output:

Code: Select all

YES
NO
NO
NO
NO
YES
YES
NO
YES
YES
NO
NO
NO
NO
YES
YES
NO
NO
NO
YES
YES
NO
NO
NO
NO
NO
NO
YES
NO
YES
YES
NO
NO
YES
YES
NO
YES
NO
NO
NO
NO
YES
NO
YES
NO
NO
NO
YES
NO
YES
NO
NO
YES
NO
NO
NO
NO
NO
YES
NO
YES
NO
NO
NO
NO
YES
NO
NO
YES
NO
NO
NO
YES
NO
YES
YES
YES
NO
NO
NO
NO
YES
NO
NO
NO
YES
NO
YES
YES
YES
YES
NO
NO
YES
NO
NO
YES
NO
NO
YES
Check input and AC output for thousands of problems on uDebug!

Munchor
New poster
Posts: 19
Joined: Sun Mar 03, 2013 4:03 pm

Re: 10503 - The Dominoes Solitaire

Post by Munchor » Wed Mar 20, 2013 1:16 am

Thank you very much!

Post Reply

Return to “Volume 105 (10500-10599)”