1129.md (1203B)
1 Source: https://codeforces.com/blog/entry/65520 2 3 Thanks for participating; we hope you enjoyed the tasks! Look at the bottom of this post for some more challenges. 4 5 Feel free to ask in the comment if you have any question. If you have a different solution from ours, share it too. :D 6 7 #### Our approaches 8 9 **Div2A** 10 11 Tutorial is loading... 12 13 **Div2B** 14 15 Tutorial is loading... 16 17 **Div2C** 18 19 Tutorial is loading... 20 21 **Div1A / Div2D** 22 23 Tutorial is loading... 24 25 **Div1B / Div2E** 26 27 Tutorial is loading... 28 29 **Div1C** 30 31 Tutorial is loading... 32 33 **Div1D** 34 35 Tutorial is loading... 36 37 **Div1E** 38 39 Tutorial is loading... 40 41 #### Challenges 42 43 **Div2C** 44 45 Can you do better than ? 46 47 There's a nice  solution, but you could also use a Voronoi diagram for an  runtime too! 48 49 **Div1A / Div2D** 50 51 Develop from our  approach to solve the task in linear time! 52 53 **Div1C** 54 55 Solve the task when *m* can be up to 105!