Toggle navigation
MYOJ
F.A.Qs
ProblemList
ProblemSet
Source/Category
Status
Ranklist
Contest
Download
4707已被升级!
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem R: 数列求值1
Problem R: 数列求值1
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
256 MiB
Submit
ProblemList
Solved: 3
Submit Num: 3
Statistics
ShowOff!
Description
求
1-2+3-4+...+n
1
−
2
+
3
−
4
+
.
.
.
+
n
的值
Input
输入一个整数
n
n
Output
输出一个整数
Sample 1 Input
Copy
4
Sample 1 Output
Copy
-2
HINT
1≤n≤100