9inai's blog

By 9inai, history, 2 years ago, In English

There this task 1670B - Dorms War, which has an O(n) solution. Isn't my 238883260 optimal as well? It keeps getting TLE's on 35th test :/ No idea how to optimize it really

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

»
2 years ago, hide # |
Rev. 4  
Vote: I like it +3 Vote: I do not like it

Use fast input Paste this into your code ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); this is a quick input to c++

Here is the package with quick input code