#1384 Approximate This!

2 s   128 MB  

Description

문제보기

 

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

 

 

Sample Input

Sample Output

3.141592653589793
2.718281828459045
1.111111111111111
0
Case 1 is best approximated as 833719/265381

Case 2 is best approximated as 566827/208524

Case 3 is best approximated as 10/9

Source

2010 Dennis Matveyev Online Programming Contest