rrepeat's blog

By rrepeat, history, 8 years ago, In English

For problem 710B following solutions:

  1. AC solution using collections.sort.
  2. TLE solution using Arrays.sort.

Does this mean Arrays.sort is slow, and should not be used in contests ? Anybody encountered such problem before ?

Full text and comments »

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

By rrepeat, history, 8 years ago, In English

http://codeforces.me/contest/721/problem/E

Couldn't understand the solution even after reading the editorial. Someone please help.

UPD: In hope that somebody might explain the solution :)

Full text and comments »

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