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 1019. Line Painting

WA#14 please give me some tests!!!
Posted by Husan 4 Apr 2008 04:15
Re: WA#14 please give me some tests!!!
Posted by czz5242199 28 Feb 2009 09:54
Me.too
Re: WA#14 please give me some tests!!!
Posted by Wang Xiang 28 May 2009 17:41
Me three
Re: WA#14 please give me some tests!!!
Posted by wiseking 7 Jul 2009 15:02
Re: WA#14 please give me some tests!!!
Posted by daifh151 24 Jan 2010 13:01
Me four.
Re: WA#14 please give me some tests!!!
Posted by Baurzhan 12 Jul 2010 23:06
this test devoted to those who wrote N*log(N) solution:
3
1 10^9-1 b
1 2 w
10^9-2 10^9-1 w
correct answer: [0,2] segment, but incorrect programm may return [0,10^9]. If your programm returns incorrect answer to this test, check carefully coordinates compessing via quick-sort - that's the reason of WA! Note, that difference between adjacent coordinates (compressed) equal to 1 but it doesn't mean that real difference equal to 1; For example, 10 20 30 40 = 1,2,3,4 after compressing 3-2=1 but 30-20=10!