00x3f00f3x's blog

By 00x3f00f3x, history, 4 years ago, In English

Hello everyone. Recently I've explored a better solution O(N*logN) instead of O(N^2) for 13C (Sequences) using Priority Queue: https://codeforces.net/contest/13/submission/94130902. But I can't understand why it is work. Can somebody explain the main idea of O(N*logN) solution for me? Thanks so much.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By 00x3f00f3x, history, 4 years ago, In English

Can someone help me in this problem please? I debugged it for a while but I can't understand why my code was being MLE :(( Thank you so much. P/S: Sorry for my bad English :( Sub: https://codeforces.net/contest/769/submission/93610574

Full text and comments »

  • Vote: I like it
  • -6
  • Vote: I do not like it