I have tried submitting code on spoj, but getting TLE
please help!!!
Biased Standings
Declare your dp array globally
int csort[100000] = {0};
Sometimes it gives error when we try to make an array of size >=10^5 locally because max space we can allocate inside any function is close to 10^5