| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 5 초 | 1024 MB | 11 | 5 | 3 | 60.000% |
Given three integers $n,ドル $m,ドル $k,ドル find the number of pairs $(a, b)$ where
Note: $x$ is a rational number if and only if there exists two integers $p$ and $q$ ($q \neq 0$) where $x = \frac{p}{q}$.
The input consists of several test cases terminated by end-of-file. For each test case,
The first line contains three integers $n,ドル $m$ and $k$.
For each test case, output an integer which denotes the number of pairs.
2 1 1 2 2 2 3 3 3
1 7 1
For the first test case, only the equation $x^2=0$ has one rational root.
For the second test case, each of the following 7ドル$ equations has two distinct rational roots.