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

Автор samurai123, история, 8 лет назад, По-английски

Hello Codeforces, Can anyone help me in the Problem? There is no editorial for these round. I read others codes but it is hard to find out logic from that. Any help will be appreciated. Thanks.

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

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

you need to cover the circle from inside with a layer of dots. the count of those is exactly the perimeter of the inside square (n*sqrt(2)*4) where n is the radius = (square side)/2*sqrt(2)