Introduction to Python

# 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.
4 3 3
10 1 0
Tip: You can use the transitivity of comparison operators.


Time limit: 1 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue