F. Linear Direction
- Giới hạn thời gian
- 3,0 s
- Giới hạn bộ nhớ
- 256 MB
- Điểm
- 1một phần
- Tỉ lệ AC
- 73,0%
- Người giải
- 145
Given two integers and
representing the linear equation
, determine the direction of the line (increasing, decreasing, or horizontal).

The graph displays three lines with different directions: (blue line) is a decreasing line due to a negative slope;
(green line) is an increasing line due to a positive slope;
(red line) is a horizontal line since the slope is zero.
Input
- The first line contains only integer
(
) - the number of testcase.
lines next, each line contains two integers
and
(
).
Output
- Each testcase, print direction of linear equation: increasing, decreasing or horizontal.
Samples
Sample Input 1
3
1 1
-1 4
0 3Sample Output 1
increasing
decreasing
horizontal
Bình luận