B. N数之和(二)

    Type: Default 1000ms 256MiB

N数之和(二)

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.

题目描述

4+7+10+13+16+...4+7+10+13+16+...nn个数的和。

输入格式

一个正整数 nn

输出格式

如题所述。

样例 #1

样例输入 #1

6

样例输出 #1

69

数据范围

1n1000001 \le n \le 100000

循环结构小测(一)

Not Attended
Status
Done
Rule
IOI
Problem
5
Start at
2025-11-2 9:00
End at
2025-12-2 9:00
Duration
1.5 hour(s)
Host
Partic.
19