ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1509. Domino Recognition

One Hint and a lot of tests
Posted by Leonid (SLenik) Andrievskiy 1 May 2011 02:46
1. If you get WA1 - check if you considered that the domino is mirrored.
2. Some tests (e.g. training samples), which is grouped by the number of points:

0

1
2 2

2
2 2
6 2
2
1 1
3 3

3
1 1
3 3
6 2
3
1 1
2 2
3 3

4
5 1
5 3
7 1
7 3
4
1 1
2 2
3 3
6 2
4
1 1
3 3
5 1
7 3

5
5 1
5 3
6 2
7 1
7 3
5
6 2
1 1
1 3
3 1
3 3
5
1 1
2 2
3 3
5 1
7 3

6
5 1
5 3
6 1
6 3
7 1
7 3
6
6 2
1 1
1 3
3 1
3 3
2 2
6
1 1
1 3
3 1
3 3
5 1
7 3
6
1 1
2 2
3 3
5 1
6 2
7 3

7
6 2
1 1
2 1
3 1
1 3
2 3
3 3
7
1 1
2 2
1 3
3 1
3 3
5 1
7 3
7
5 1
6 2
7 3
1 1
1 3
3 1
3 3

8
1 1
2 1
3 1
1 3
2 3
3 3
5 1
7 3
8
1 1
1 3
2 2
3 1
3 3
5 1
6 2
7 3
8
1 1
1 3
3 1
3 3
5 1
5 3
7 1
7 3

9
1 1
2 2
1 3
3 1
3 3
5 1
5 3
7 1
7 3
9
5 3
6 2
7 1
1 1
2 1
3 1
1 3
2 3
3 3

10
1 1
1 3
2 2
3 1
3 3
5 1
5 3
6 2
7 1
7 3
10
1 1
1 3
2 1
2 3
3 1
3 3
5 1
5 3
7 1
7 3

11
5 1
5 3
6 2
7 1
7 3
1 1
1 3
2 1
2 3
3 1
3 3

12
1 1
2 1
3 1
1 3
2 3
3 3
5 1
5 3
6 1
6 3
7 1
7 3