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 1056. Centers of the Net

IMPORTANT: how to get AC and MEMORY at the same time :((
Posted by foxX 10 Sep 2003 01:53
greetings solvers. this is the second buggiest problem i've ever ACed here. EXACTLY the same source got me MEMORY LIMIT like 30 minutes before getting AC.
the C program used 1100 kbs - MEMORY
same program but "pascalized" used 770 kbs - AC

<a href="http://acm.timus.ru/problem.asp?id=1056">1056</a> wasn the only problem to do me this, also <a href="http://acm.timus.ru/problem.asp?id=1036">1036</a>. I guess that Borland Delphi(or whichever Pascal compiler used here) uses dynamic allocation better than Microsoft C...

cheerz, foxx@email.ro
To avoid TLE on C/C++ don't use dinamic data structures like queue. (-)
Posted by Mad Mouse 11 Sep 2003 07:34