Problem A
Modulo
Given two integers
Input
The input will contain 10 non-negative integers, each
smaller than
Output
Output the number of distinct values when considered modulo
Explanation of Sample Inputs
In sample input
In sample input
In sample input
Sample Input 1 | Sample Output 1 |
---|---|
1 2 3 4 5 6 7 8 9 10 |
10 |
Sample Input 2 | Sample Output 2 |
---|---|
42 84 252 420 840 126 42 84 420 126 |
1 |
Sample Input 3 | Sample Output 3 |
---|---|
39 40 41 42 43 44 82 83 84 85 |
6 |