Hide
Problem D
All Modulo Pythagorean
Languages
en
is
You are given a value
For example in the first sample the solutions are
Input
The first and only line of input contains a positive integer
Output
Print the number of Pythagorean triples modulo
Sample Input 1 | Sample Output 1 |
---|---|
4 |
5 |
Sample Input 2 | Sample Output 2 |
---|---|
7 |
18 |
Sample Input 3 | Sample Output 3 |
---|---|
15 |
64 |