题目描述
For Turbo C++ Users : Read the following document before attempting the question :
Problem Description
First question is easy to set you up with the online judge. You are given a number 'N'. You need to find the sum of first N terms of the series: 1 - 2 + 3 - 4 + 5 - 6 ...
Input
First line contains T, the number of test cases. Each test case contains the number N on a new line,which denotes the number of events
Output
For each test case, print the total number of registrations on a new line for every test case.
Constraints
Example
Input:
3
3
1
2
Output:
2
1
-1
输入格式
见题面
输出格式
见题面
样例输入
3
3
1
2
样例输出
2
1
-1