PrakharJain's blog

By PrakharJain, history, 7 years ago, In English

Hi All, is it that the Distributed code jam problems are not open for practice, or that I'm not landing on the right page? I tried to open this problem. It just shows 'Contest has ended' and not the usual Solve 'Solve B-small' and 'Solve B-large' as it is appearing for the normal code jam problems. Any insights would be greatly appreciated. :)

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it

By PrakharJain, history, 8 years ago, In English

In the problem Div 2 C of the recent Codeforces round #415, I got TLE on test 69. I was unable to figure out the reason as the loop was running for just n times. So, I changed my array to arraylist, and used Collections.sort() instead of the Arrays.sort(). To my surprise, it passed without any other changes! What could be the reason here? Check my last 2 submissions for this : TLE Submission and Accepted submission

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it