问题 2450 --Sum Problem

2450: Sum Problem

题目描述

  Hey, welcome to HDOJ(Hangzhou Dianzi University Online Judge). In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.

输入

第一行,测试案例数N,接下来N行N个数,求每一行1+..+n的和

输出

For each case, output SUM(n) in one line, followed by a blank line. You may assume the result will be in the range of 32-bit signed integer.

样例输入输出

输入#1 复制
2
1
100
输出#1 复制
1

5050

提示

序号 标题 作者 发表时间 费用 订购数 操作