Preparando MOJI

Rotation

2000ms 65536K

Description:

Ehsan loves geometry! Especially he likes to rotate points!

Given a point in the plane, Ehsan likes to rotate it by k degrees (counter-clockwise), around the origin. What is the result of this rotation?

Input:

A single integer k (0 ≤ k < 360) is given in the first line. Two integer numbers x and y are given in the second line ( - 1390 ≤ x, y ≤ 1390).

Output:

Write two numbers. The result of the rotation. Your answer must have a relative error less than 10 - 1.

Sample Input:

90
1 1

Sample Output:

-1.00000000 1.00000000

Sample Input:

180
1 1390

Sample Output:

-1.00000000 -1390.00000000

Informação

Codeforces

Provedor Codeforces

Código CF100I

Tags

*specialgeometrymath

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:32:07

Relacionados

Nada ainda