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 1987. Nested Segments

why wa10?
Posted by Felix_Mate 7 Jun 2016 19:51
I found my mistake. Helpfull test:
4
1 2
3 100
4 5
6 7
2
1
7
ans:
1
4

HINT:This problem can be solved O(n) with stack.

Edited by author 31.08.2016 10:07
Re: why wa10?
Posted by Combatcook 9 Jun 2016 14:29
Try to use 'longint' instead of 'int64'. In some problems it helps if you have WA.
Re: why wa10?
Posted by Михаил 6 Jan 2019 22:04
thanks
Re: why wa10?
Posted by Vlad Haivas 20 May 2020 23:29
Thank you so much for the test!