Negationist's blog

By Negationist, 11 months ago, In English

Firstly, I recommend that you read at least one of the following blogs on slope trick if you are not familiar with it.

https://mirror.codeforces.com/blog/entry/77298

https://mirror.codeforces.com/blog/entry/47821

This slope trick template makes many annoying things to code for slope trick quite simple, please give the implementation a good look if you are having trouble. It is lightly tested, all the functions were needed for and work on the following AtCoder and Codeforces questions:

https://atcoder.jp/contests/abc406/tasks/abc406_g

https://mirror.codeforces.com/contest/713/problem/C

Implementation

If you have anything else you would like to see added, let me know! Maybe I could add it to the template.

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

»
11 months ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

Ignore the downvote my friend is braindead