문제1384--Approximate This!

1384: Approximate This!

실행시간 제한: 2 Sec  메모리사용 제한: 128 MB
제출: 17  통과: 7
[제출] [채점기록] [묻고답하기]

문제 설명

문제보기

 

https://www.cs.duke.edu/courses/cps149s/spring10/assign/denny2010.pdf

 

 

입력 예시 Copy

3.141592653589793
2.718281828459045
1.111111111111111
0

출력 예시 Copy

Case 1 is best approximated as 833719/265381

Case 2 is best approximated as 566827/208524

Case 3 is best approximated as 10/9

출처/분류