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 1040. Airline Company

AC solution is incorrect!
Posted by UNKNOWN_LAMER 22 Dec 2005 14:07
Submit ID is 1027752.

For test
5 4
1 2
2 3
1 3
4 5

My answer is NO.

But you can number flights: 1 2 3 4  :)

My solution should be OK for connected graphs. But the test set lacks for disconnected cases.
Re: AC solution is incorrect!
Posted by jedimastex 22 Dec 2005 14:13
read the task carefully
Re: AC solution is incorrect!
Posted by UNKNOWN_LAMER 22 Dec 2005 14:53
I have re-read and could't find my mistake. Can you help me?

And I've found the case of connected graph with WA.

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

My solution's answer is NO, but 2 1 3 4 6 5 seems to be OK.

So the test set of Timus is really incomplete.