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

Автор simp_pro, история, 22 месяца назад, По-английски

Problem link: https://atcoder.jp/contests/abc259/tasks/abc259_b

Submission link(WA): https://atcoder.jp/contests/abc259/submissions/33131531

Submission link(AC): https://atcoder.jp/contests/abc259/submissions/33131108

The only change I have done is how I am calculating the angle. I am getting wrong answer when I use atan, however I am getting AC with atan2.

My atan usage
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
22 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Use following equations,

$$$x' = x * cos(\theta) - y * sin(\theta)$$$
$$$y' = x * sin(\theta) + y * cos(\theta)$$$