Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Absolute U

By sakibalamin · Limits 1s, 512 MB

Do you know about absolute value function?
In mathematics, the absolute value of a real number uu, denoted u|u|, is the non-negative value of u without regard to its sign. Namely, u=u|u| = u if uu is positive, and u=u|u| = -u if uu is negative, and 0=0|0| = 0. For example, the absolute value of 3 is 3, and the absolute value of -3 is also 3.

Given an integer u, you have to output the value of u|u|.

Input

First line contains a positive integer TT (1T1001 \le T \le 100 ), which is the number of test cases. Then TT cases follow, each having a single integer uu (100000u100000-100000 \le u \le 100000).

Output

Output a single integer, which is u|u| (the absolute value of uu).

Sample

InputOutput
3
12
-5
24
12
5
24

Discussion

Statistics


97% Solution Ratio

FairoozREarliest, Jun '20

FairoozRFastest, 0.0s

FairoozRLightest, 0 B

bokaifShortest, 38B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.