Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

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

I was trying to solve a problem which involved covering a given arc by minimal side of a square. I came to the conclusion that I had to write the equation of the arc, however it posed a great deal of difficulty to me. Kindly help. Thank you

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

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

Lets say the points have coordinates (x1,y1),(x2,y2),(x3,y3).
Assume, center of circle has coordinates (x0,y0) and radius r. Now, as the points are on circle,
(x0-x1)^2 + (y0-y1)^2 = r^2
(x0-x2)^2 + (y0-y2)^2 = r^2
(x0-x3)^2 + (y0-y3)^2 = r^2 Now try to do something with these equations.