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

Some tests are not as described!
Posted by Vlad Ionescu 26 Jun 2003 21:24
I've had some trouble solving this and I'm sure there are some tests
where ai>bi. How do I know? Well, I got a lot of WAs, so at some
point I inserted this into my code, where I read the data:
  if ai>bi then
     while 1=1 do writeln('Error!');
Guess what? I got Output Limit Exceeded instead of WA. So if you want
to get AC, you also have to ignore the lines where ai>bi.