Regular polygons with integer coordinates

ICPC Latin American Regional – 2016 - Problem C

Made with Nuxt.js.