시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 795 | 531 | 506 | 68.194% |
We will call the distance between any two values on the number line the absolute line distance. Given two values, find the absolute line distance and output it, rounded and formatted to one place of precision.
The first line contains a single positive integer, n, indicating the number of data sets. Each data set is on a separate line and contains two values on the number line, separated by a single space.
The absolute line distance between the two points, rounded to the nearest tenth, and print exactly one decimal digit.
3 3 5 8.1 -9 -6.4 -18.34
2.0 17.1 11.9