#P13459. [GCJ 2008 #1A] Numbers
[GCJ 2008 #1A] Numbers
题目描述
In this problem, you have to find the last three digits before the decimal point for the number .
For example, when , The answer is .
For , The answer is .
输入格式
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 #:
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.
2
5
2
Case #1: 935
Case #2: 027
提示
Limits
Small dataset (15 Pts, Test set 1 - Visible)
Large dataset (35 Pts, Test set 2 - Hidden)