Problem2462--数列-加减之和1练习

2462: 数列-加减之和1练习

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 139  Solved: 95
[Status] [Submit] [Creator:]

Description

求1-2+3-4+5-6+...±n的值(n为奇数时加,偶数时减)(n<=1000)

Input

一个正整数n

Output

1-2+3-4+5-6+...±n的结果

Sample Input Copy

99

Sample Output Copy

50

Source/Category

 基础B