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 1658. Sum of Digits

MLE4
Posted by ONU_Antananarivu 11 Sep 2011 13:41
Why when I allocated staticly globaly memory like this
char a[10005][10005] = {0};
char d[10005][10005] = {0};
I got MLE 4, but not MLE 1?
Re: MLE4
Posted by spiker 11 Sep 2011 19:59
You can used only:
char a[901][8101];
char d[901][8101];
Because 9....9 (100 times) S = 900 and S^2 = 8100
Re: MLE4
Posted by ძამაანთ [Tbilisi SU] 23 Oct 2013 16:56
Maybe because of the compiler's optimizations