[BOJ 14786] Ax+Bsin(x)=C ②

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 512M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

A, B, C가 주어졌을 때, Ax+Bsin(x)=C를 만족하는 x를 찾는 프로그램을 작성하시오.

입력 형식

첫째 줄에 정수 A, B, C가 주어진다. (0 < B ≤ A ≤ 100,000, 0 < C ≤ 100,000)

출력 형식

첫째 줄에 x를 출력한다. 정답과의 절대/상대 오차는 10-9까지 허용한다.

예제 입력

1 1 20

예제 출력

19.4417867100477812106

Comments

There are no comments at the moment.