Points: 20 (partial)
Time limit: 30.0s
Memory limit: 1G
In this problem, you have to find the last three digits before the decimal point for the number .
For example, when , The answer is 935.
For , The answer is 027.
The first line of input gives the number of cases, . test cases follow, each on a separate line. Each test case contains one positive integer .
For each input case, you should output:
Case #X: Y where is the number of the test case and is the last three integer digits of the number . In case that number has fewer than three integer digits, add leading zeros so that your output contains exactly three digits.
Time limit: 30 seconds per test set.
Memory limit: 1 GB.
2 5 2
Case #1: 935 Case #2: 027