Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Recent
Login
Problem K: 等差数列
Problem K: 等差数列
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1163
Solved:
806
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
sum=2+5+8+11+14+
…
,输入正整数
n
,求
sum
的前
n
项和。
Sample Input
2
Sample Output
7