ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1883. Ent's Birthday

Simple and fast solution in O(n)
Posted by ironchat(ITMO) 5 Aug 2019 17:57
Use scanline y = -x + a
We need to use no more than 6 points
If you want to be fast use k-statistic in O(n)
For better explanation write here: myironmistake@gmail.com

Edited by author 06.08.2019 18:42