[BOJ 13705] Ax+Bsin(x)=C

View as PDF

Submit solution

Points: 5
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를 반올림해서 소수점 여섯째 자리까지 출력한다.

예제 입력

1 1 20

예제 출력

19.441787

Comments

There are no comments at the moment.