首页 > 代码库 > A simple problem(湘大邀请赛)

A simple problem(湘大邀请赛)

A simple problem

Accepted : 61 Submit : 418
Time Limit : 15000 MS Memory Limit : 655360 KB

 

Problem Description

There is a simple problem. Given a number N. you are going to calculate N%1+N%2+N%3+...+N%N.

Input

First line contains an integer T, there are T(1≤T≤50) cases. For each case T. The length N(1≤N≤1012).

Output

Output case number first, then the answer.

Sample Input

15

Sample Output

Case 1: 4

 

 

有没有人会做,用c或c++???求解答

 本人QQ:2390956884

ps:http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1203