850.md (2764B)
1 Source: https://codeforces.com/blog/entry/54317 2 3 Hi! 4 5 Thanks to all of you participates, who made this contest possible. And thanks to [Lewin](/profile/Lewin "Grandmaster Lewin") and [Arterm](/profile/Arterm "International Grandmaster Arterm"), also to the great coordinator, Nikolay [KAN](/profile/KAN "Grandmaster KAN") Kalinin, [zemen](/profile/zemen "International Grandmaster zemen"), [WHITE2302](/profile/WHITE2302 "Grandmaster WHITE2302"), and for sure [MikeMirzayanov](/profile/MikeMirzayanov "Headquarters, MikeMirzayanov"). 6 7 [Test data and code solutions](https://mega.nz/#F!D4hWVKYZ!OdSGk4gOlUlI9GS-02t29A). It's the original packages from polygon, you can find pretests, tests, generators, validators, etc in it. 8 9 # Hints 10 11 **Div.2 A**: Take a look at notes section. 12 13 **Div.2 B**: Create a circle with these points. 14 15 **Div.1 B**: Fix the *gcd*. 16 17 **Div.1 C**: Tag: Grundy number. 18 19 # Details 20 21 **Div.1 C** 22 23 I want to thank my grand teacher Mojtaba [moji](/profile/moji "Candidate Master moji") FayazBakhsh here. Who was my teacher not only for coding but also a teacher for my life. Thanks Mojtaba! Thanks to you and all of other good teachers in the world. 24 25 # Solutions 26 27 Tutorial is loading... 28 29 Author: [Arpa](/profile/Arpa "Candidate Master Arpa") 30 31 Tutorial is loading... 32 33 Author: [Arpa](/profile/Arpa "Candidate Master Arpa") 34 35 Tutorial is loading... 36 37 Author: [Lewin](/profile/Lewin "Grandmaster Lewin") 38 39 Thanks to [Lewin](/profile/Lewin "Grandmaster Lewin"), the writer of this tutorial. 40 41 Tutorial is loading... 42 43 Author: [Arpa](/profile/Arpa "Candidate Master Arpa") 44 45 Tutorial is loading... 46 47 Author: [Arpa](/profile/Arpa "Candidate Master Arpa") 48 49 Tutorial is loading... 50 51 Author: [Arterm](/profile/Arterm "International Grandmaster Arterm") 52 53 Thanks to [WHITE2302](/profile/WHITE2302 "Grandmaster WHITE2302"), the writer of this tutorial. I translated this tutorial to English. 54 55 Tutorial is loading... 56 57 Author: [Arterm](/profile/Arterm "International Grandmaster Arterm") 58 59 Thanks to [Arterm](/profile/Arterm "International Grandmaster Arterm"), the writer of this tutorial. 60 61 Tutorial is loading... 62 63 Author: [Lewin](/profile/Lewin "Grandmaster Lewin") 64 65 Thanks to [Lewin](/profile/Lewin "Grandmaster Lewin"), the writer of this tutorial. 66 67 I’d like to finish the editorial with the below poem by [Hatef Esfahani](https://en.wikipedia.org/wiki/Hatef_Esfahani): 68 69 چه کند کوه کن دلشده با غیرت عشق گر نه بر فرق زند تیشه ز رشک خسرو 70 71 Translation: What can lover (Farhad) do with the power of love? He has no choice but to hurt himself by ax because he feels jealousy to Khosrow. [More information about Khosrow and Shirin story](https://en.wikipedia.org/wiki/Khosrow_and_Shirin). 72 73 Good luck and see you soon ;)