码迷,mamicode.com
首页 > 其他好文 > 详细

A simple problem(湘大邀请赛)

时间:2014-08-12 18:42:54      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:des   style   http   color   io   strong   for   ar   

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

1
5

Sample Output

Case 1: 4

 

 

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

 本人QQ:2390956884

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

 

A simple problem(湘大邀请赛),布布扣,bubuko.com

A simple problem(湘大邀请赛)

标签:des   style   http   color   io   strong   for   ar   

原文地址:http://www.cnblogs.com/yuyixingkong/p/3907953.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!