Three integers are given. Determine how many of them match. The program should output one of the numbers: 3 (if all match), 2 (if two match), or 0 (if all numbers are different).

3

2

0

1000 ms 256 Mb Rules for program design and list of errors in automatic problem checking