ENG
RUS
Timus 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
1329
. Galactic History
Tips
Posted by
MAK
2 Sep 2010 15:33
If you get WA2 try this one:
Input:
3
3 2
2 1
1 -1
3
1 2
3 2
1 3
Output:
1
2
1
Also if you get WA12 pay attention for: "All identifiers lie between 0 and 40000."
© 2000–2024
Timus Online Judge Team
. All rights reserved.