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 1395. Pascal vs. C++. Version 2

Furtuna Dan Emanuel Test case 34 WA [5] // Problem 1395. Pascal vs. C++. Version 2 10 Aug 2006 12:37
Can someone tell me why this test is special?
If I got a TLE I would have known that my program is slow and optimised but now, I don't know what's wrong.
Strange that the same program passes the first version of the problem.
Furtuna Dan Emanuel Re: Test case 34 WA [4] // Problem 1395. Pascal vs. C++. Version 2 10 Aug 2006 12:53
Found the bug in my program. Sorry for the post.
Dmitry 'Diman_YES' Kovalioff Good luck solving this problem (+) [3] // Problem 1395. Pascal vs. C++. Version 2 10 Aug 2006 15:29
It is almost impossible to solve it on Pascal. Author's solution passes the TL, but it is incredibly optimized...
Furtuna Dan Emanuel Re: Good luck solving this problem (+) [2] // Problem 1395. Pascal vs. C++. Version 2 10 Aug 2006 16:22
AC at last but with a little cheat.
I'm sure it won't pass all the new tests after you look at it more closely. Gotta optimize some more.