#C5228. Manhattan Distance Calculator
Manhattan Distance Calculator
Manhattan Distance Calculator
This problem requires you to compute the Manhattan distance from the central city located at \((0,0)\) to several other cities. The Manhattan distance for a city with coordinates \((x, y)\) is defined by the formula \(d = |x| + |y|\). You need to read the input from the standard input (stdin) and print the output to the standard output (stdout).
inputFormat
The first line contains an integer \(T\) representing the number of cities. Each of the following \(T\) lines contains two space-separated integers \(x\) and \(y\) which denote the coordinates of a city.
outputFormat
Output \(T\) lines, each line containing one integer which is the Manhattan distance from the central city \((0,0)\) to the corresponding city.
## sample3
1 2
-3 4
5 -6
3
7
11
</p>