I am trying to solve problems from past ico’s in ICO online judge.i solved a problem(NEXTPERM). After submission the solution was accepted but i scored only 20 out of 100.The judge is showing that my solution has given correct answer to all the test cases. What can be the cause of scoring so bad??how can i improve my score??
link to the problem:http://opc.iarcs.org.in/index.php/problems/NEXTPERM
long int n,p,a,b,c,d,e=0,f,g=1,h,i,j,k;
In IOI style grading even if u get a few test files correct then u get partial marking…each test file is assigned a particular weight-age…so even if 1-2 test files out of the predefined number of test files are correct while the others are giving a WA or RE or TLE…it shows AC status and gives u a partial score…hope this helps…
EDIT: can u provide a link to the problem and the link to ur solution…!!!
EDIT 2: to increase ur score maybe u should check if u may be missing a few corner cases…or maybe some overflow maybe taking place or maybe some divide by zero(which may give RE) or maybe RE due to some segmentation fault(large array size) or maybe ur algo may not be efficient enough giving a TLE for the remaining test files so u may need to rethink on ur approach…!!!
for i in xrange(k):
for i in xrange(n-1):
for j in xrange(ii,n):
for i in xrange(n):