B. BQG's Messy Code
Time Limit: 2000ms
Memory Limit: 32768KB
64-bit integer IO format:
%lld Java class name:
Main
“………………………………………………………………………………………………这代码能跑你敢信?”
![Big \ Q \ God Big \ Q \ God](http://www.bnuoj.com/v3/functions/latexrender/pictures/452ca35779267682d31b87da49b2a42e.png)
现在
给你一个整数,希望你能帮他算一算读取了这个整数之后程序输出的结果。
![BQG BQG](http://www.bnuoj.com/v3/functions/latexrender/pictures/70a7772303b35bfed91d3a9833df1fd6.png)
Input
第一行是一个正整数
,表示测试数据的组数,
![T(T \leq 100000) T(T \leq 100000)](http://www.bnuoj.com/v3/functions/latexrender/pictures/e34713f377400a41bed54b22b3734712.png)
每组测试数据只有一行,
包含一个整数
。
![x(-1000000000 \leq x \leq 1000000000) x(-1000000000 \leq x \leq 1000000000)](http://www.bnuoj.com/v3/functions/latexrender/pictures/324be3055d01089af04aad6ad95d78dd.png)
Output
对于每组测试数据,输出一个整数,表示这个程序输出的结果。
Sample Input
3 0 1 -1
Sample Output
0 -1 1
#include<stdio.h>
#include<string.h>
#include<iostream>
#include<stdlib.h>
#include<algorithm>
using namespace std;
int main(){
long long int T;
cin>>T;
while(T--){
long long int i;
cin>>i;
i=-i;
cout<<i<<endl;
}
return 0;
}