Time limit: 1.0s
Memory limit: 64M
You are given ~Q~ queries of the form:
a b~(-10^9 \le a,b \le 10^9)~. This query asks for ~a-b~ if ~a < b~, and ~b-a~ if ~b \le a~.
For each query, print out the desired answer!
The first line will contain the integer ~Q~ ~(1 \le Q \le 10^5)~.
The next ~Q~ lines will each contain a query of the form defined above.
For each query, print the desired answer on its own line.
3 1 3 3 2 10 29
-2 -1 -19
This comment is hidden due to too much negative feedback. Click here to view it.