提示: 欢迎访问OurACM平台。
Problem 2036 Log Calculator

Accept: 147    Submit: 672
Time Limit: 2000 mSec    Memory Limit : 32768 KB

Problem Description

Input

The first line of the input contains an integer T(T≤100), indicating the number of test cases. Each test case contains two float numbers: a, b(-10^10000≤a,b≤10^10000), indicating and respectively.

Output

For each test case, print a line containing the test case number (beginning with 1) and the required result. Because of the result may be an irrational number, so you just need to print the result with 9 digits of precision, round half up.

Sample Input

2 1 1 0 0

Sample Output

Case 1: 2.000000000 Case 2: 1.000000000

Source

2011年全国大学生程序设计邀请赛(福州)

Submit  Back  Status  Discuss