logo AlgoBeat OnlineJudge
登录 注册

#213586. [GCJ 2008 #1A] Numbers

内存限制:1024 MiB 时间限制:3000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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.

样例

样例输入 1

2
5
2

样例输出 1

Case #1: 935
Case #2: 027

数据范围与提示

Limits

Small dataset (15 Pts, Test set 1 - Visible)

Large dataset (35 Pts, Test set 2 - Hidden)