曹文信息在线OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
2149: 数列求和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:48
Solved:50
Submit
Submit Record
Statistics
Web Board
ShowOff!
Description
有一串数列:1-3+5-7+9-11……求前n个数的和。
Input
输入一个整数n。
Output
输出和。
Sample Input
Copy
5
Sample Output
Copy
5
Source/Category
中级A