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 1441. From the History of Gringotts Bank

Wa 3
Posted by MSDN 21 May 2010 20:50
subj
Re: Wa 3
Posted by Spatarel Dan Constantin 26 Oct 2018 20:46
This might help:

input:
4 4
1 2
1 4
2 3
4 3

output:
1
1 4 3 2 1