首页 > 其他 > 详细

A simple problem(湘大邀请赛)

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

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(湘大邀请赛)

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!