Блог пользователя Negationist

Автор Negationist, 11 месяцев назад, По-английски

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.

  • Проголосовать: нравится
  • +11
  • Проголосовать: не нравится

»
11 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Ignore the downvote my friend is braindead