For a rational number x = p / q and non-negative integers a, b, c, consider the series
sum over k = 1, 2, 3, ... of k^a x^k / (k + b)^c.
Classify it as one of:
ABSOLUTE — the series converges absolutely;CONDITIONAL — the series converges, but not absolutely;DIVERGENT — the series does not converge.The first line contains the integer m. Each of the next m lines contains the integers p, q, a, b, c describing one series.
m lines, the classification of each series in order.
1 <= m <= 10^4
|p| <= 10^9, 1 <= q <= 10^9
0 <= a, b, c <= 10^9
This is a standard problem: a submission scores full points if it produces the correct output for every test case, and zero otherwise.
5 1 2 5 0 0 1 1 0 0 2 -1 1 0 0 1 1 1 0 0 1 2 1 0 0 9
ABSOLUTE ABSOLUTE CONDITIONAL DIVERGENT DIVERGENT
1 -1 1 1 3 2
CONDITIONAL