#t247. 求 n 累加和(ja)

求 n 累加和(ja)

Sum from 1 to n (High Precision)

Problem Background

Special for beginners, ^_^

Problem Description

Using high-precision arithmetic, compute the exact value of s=1+2+3+⋯+ns = 1 + 2 + 3 + \dots + n (1≤n≤1061 \le n \le 10^6).

Input Format

An integer nn.

Output Format

Output the value of ss.

Sample Input

10

Sample Output

55

Constraints

1s, 1024KiB for each test case.