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 1097. Square Country 2

Help Please!!!
Posted by JLYZOI 16 Jun 2004 07:28
Could anyone give some testdatas?
Re: Help Please!!!
Posted by Spatarel Dan Constantin 1 May 2005 13:17
The tests aren't tricky at all, but at least it's something:

5 3
6
94 2 4 1
3 1 1 1
2 1 1 2
2 2 2 1
100 1 2 5
255 1 5 5
Answer: 2

24 10
2
10 10 1 1
20 10 12 12
Answer: 1

24 14
2
10 10 1 1
20 10 12 12
Answer: 20

6 4
3
10 3 1 1
9 3 4 4
8 3 1 4
Answer: 10
Re: Help Please!!!
Posted by Pham Hung Son 22 Dec 2005 19:40
6 2
7
4 1 4 1
4 1 5 1
3 2 1 2
2 1 6 3
4 2 5 4
2 1 1 5
3 1 2 1
Answer : 1
Re: Help Please!!!
Posted by Dart MirzMan CPP Edition (Rybinsk SAAT) 7 Feb 2007 18:08
3 3
9
2 1 1 1
3 1 1 2
4 1 1 3
5 1 2 1
6 1 2 2
7 1 2 3
8 1 3 1
9 1 3 2
10 1 3 3
Answer: 10
Re: Help Please!!!
Posted by Dmitry "Logam" Kobelev [TSOGU] 28 Aug 2008 19:43
I had wa14.
This test helped me to figure out what's been wrong.

5 3
2
255 1 3 2
255 1 2 3
Answer 1