|  | 
|  | 
| вернуться в форум | IMPORTANT: how to get AC and MEMORY at the same time :(( Послано foxX  10 сен 2003 01:53greetings 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.roTo avoid TLE on C/C++ don't use dinamic data structures like queue. (-) | 
 | 
|