# Equal numbers
Given 3 numbers, our task is to determine how many of those are equal to each other.
If all 3 of those are equal, the program should output 3.
If two of those are equal and one is different, the program should output 2.
If all of the numbers are different, the program should output 1.
Input | Output |
---|---|
4 3 3 | 2 |
10 1 0 | 1 |
Tip: You can use the transitivity of comparison operators.
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB