D. 课例题 - 自然数之和

    Type: Default 1000ms 256MiB

课例题 - 自然数之和

提示:该题测试数据补录中,暂不支持评测提交。

No testdata at current.

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

输入n,输出1+2+3+...+n的值。

输入输出说明

输入说明

输入正整数n。

输出说明

输出1+2+3+...+n的值。

题目样例

样例输入

100

样例输出

5050

数据范围

  • 对于30%数据满足, 1≤n≤1041\leq n\leq 10^4
  • 对于100%数据满足, 1≤n≤1091\leq n\leq 10^9

P2阶段测试

Not Attended
Status
Done
Rule
XCPC
Problem
9
Start at
2025-1-24 14:00
End at
2025-1-24 17:00
Duration
3 hour(s)
Host
Partic.
13