AH. 课例题 - m+(m+1)+...+n

    Type: Default 1000ms 256MiB

课例题 - m+(m+1)+...+n

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

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.

题目描述

从键盘输入2个正整数m,n(m<nm<n),求m+(m+1)......+n的值。

输入输出说明

输入说明

输入2个正整数m和n。

输出说明

计算并输出m+(m+1)......+n的值。

题目样例

样例输入

1 100

样例输出

5050

数据规模

  • 对于30% 数据 满足 1≤n,m≤1041\leq n,m\leq 10^{4}
  • 对于60% 数据 满足 1≤n,m≤1081\leq n,m\leq 10^{8}
  • 对于100% 数据 满足 1≤n,m≤4∗1091\leq n,m \leq4*10^9

这些题都有点善

Not Attended
Status
Done
Rule
XCPC
Problem
42
Start at
2025-1-18 13:45
End at
2025-3-5 20:45
Duration
1111 hour(s)
Host
Partic.
17