2658N-powers

2658   N-powers

题目描述

Little K,who hates math, has got a series11+22+33++nn (1<=n<=1000).He wants to know the last ten digits of the series, please help him.

输入格式:

The first line contains one integer T, indicates the total test cases. Each test case contains one integer n. (1<=n<=1000,T<=20)

输出格式:

Print a number contains ten digits, if the number’s digits are less than ten, you need to print leading zero.

输入样例 复制
3
1
2
10
输出样例 复制
0000000001
0000000005
0405071317

说明

10
35
通过提交
时空限制1000ms/32mb
题目来源数据结构实验与竞赛训练
评测方式在线评测
题目类型
难        度