Góc của điểm trong hệ tọa độ cực

View as PDF

Submit solution

Points: 0.10 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch

Cho điểm ~(x, y)~ có tọa độ nguyên trong hệ tọa độ Descartes. Tìm góc của điểm đó trong hệ tọa độ cực.

image

Input

Một dòng duy nhất chứa 2 số nguyên ~x, y~ (~|x|, |y| < 10^9~) — tọa độ của điểm.

Output

Một số thực duy nhất trong khoảng ~[0, 2\pi)~ - đáp án bài toán.

Đáp án được coi là đúng khi có sai số không quá ~10^{-6}~.

Sample Input 1

3 4

Sample Output 1

0.9272952180

Comments

Please read the guidelines before commenting.


There are no comments at the moment.