|
|
back to boardTime limit exceeded Posted by Lincoln 27 Mar 2009 19:25 used: ... for(i=1;i<=S;i++) for(j=i;j<=S;j++) ... But the result is 'Time limit exceeded'. Please help, why 'Time limit exceeded'? Re: Time limit exceeded don't use brute force... O(n^2) n=30000 ===>>> time limit) hint: you can don't use N in your solution Re: Time limit exceeded Posted by rip&pvs 14 Jan 2015 23:00 brute force (with some optimizations) works fine |
|
|