Solve problem "Equal numbers" online - Learn Python 3 - Snakify

Problem «Equal numbers» (Easy)


Statement

Given three integers. Determine how many of them are equal to each other. The program must print one of the numbers: 3 (if all are same), 2 (if two of them are equal to each other and the third is different) or 0 (if all numbers are different).

In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
10
5
10
2
17
17
-9
2
4
-82
-82
2
5
2
4
0
-149
-146
-142
0
666
666
666
3