#144. 数字彩票分数计算
数字彩票分数计算
Lottery Ticket Score
Background
Congcong recently became fascinated with an interesting digital lottery game. Each ticket has three integers printed on it, and different scores are awarded based on the characteristics of these three numbers.
Problem Description
You have a green lottery ticket, with integers and on it. If the numbers are all different from each other, the result is . If all of the numbers are the same, the result is . If two of the numbers are the same, the result is .
Input Format
Input is given from Standard Input in the following format:
Output Format
Output to Standard Output in the following format:
[Result]
Sample
1 2 3
0
2 2 2
20
1 1 2
10
Constraints
Time limit: second, Memory limit: KiB for each test case.