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 1424. Minibus

Test #7
Posted by 2lazy 20 May 2008 13:45
Gettin' wrong answer. Can anybody post it, please!?
Re: Test #7
Posted by TEST 15 May 2009 12:21
10 2 5 1
1 6
1 4
4 5
5 8
7 9

Answer:
5
1 2 3 4 5
May be test 7 is another thing.I don't know exactly.

Edited by author 16.05.2009 11:57
Re: Test #7
Posted by 3a[3.141592..]Jlu 20 Jul 2009 00:00
I got wa7 too. But my algo give right answers in all tests at timus :( I use sort and greedy :( I don't understand why sort and greedy not work?
Re: Test #7
Posted by Igor Mihajlovic 19 Sep 2009 05:57
this is not test 7
this test works for me
i also use sort + greedy and i dont know why i get wa7
Re: Test #7
Posted by Jesful 17 Aug 2010 08:45
Try this one:
10 3 5 1
1 2
1 5
1 7
6 8
4 9

The answer is:
5
1 2 3 4 5