Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Petr's blog

By Petr, history, 11 years ago, In English
  • Vote: I like it
  • +45
  • Vote: I do not like it

»
11 years ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Could you estimate in any reasonable way complexity of solution finding intersecting segments and flipping them? Intuitively, it should work, but I don't know how to estimate it better than exponential.