fork(2) download
  1. #include <iostream>
  2. #define getcx getchar_unlocked
  3. using namespace std;
  4.  
  5. inline long long in()
  6. {
  7. long long n=0;
  8. long long ch=getcx();long long sign=1;
  9. while( ch < '0' || ch > '9' ){if(ch=='-')sign=-1; ch=getcx();}
  10.  
  11. while( ch >= '0' && ch <= '9' )
  12. n = (n<<3)+(n<<1) + ch-'0', ch=getcx();
  13. return n*sign;
  14. }
  15.  
  16. int main()
  17. {
  18. int t,n;
  19.  
  20. t = in();
  21. while ( t-- )
  22. {
  23. n = in();
  24. printf("%d\n",n);
  25. }
  26. return 0;
  27. }
Success #stdin #stdout 0s 2732KB
stdin
5
-1
-2
-3
-4
-5
stdout
-1
-2
-3
-4
-5