ollpu's blog

By ollpu, history, 3 years ago, In English

Just leaving this here:

auto q = priority_queue(greater(), vector{pair{0ll, 0}});
// or
auto q = priority_queue(greater(), vector{tuple{0ll, 0, 0}});

Only works in GCC 9.1 and up, so you have to submit as GCC C++17 64bit in Codeforces.

Full text and comments »

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