Блог пользователя PrakharJain

Автор PrakharJain, история, 7 лет назад, По-английски

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. :)

Полный текст и комментарии »

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

Автор PrakharJain, история, 8 лет назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится