#144. 数字彩票分数计算

    ID: 144 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatLogic-1gesp1条件结构

数字彩票分数计算

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 a,b,a, b, and cc on it. If the numbers are all different from each other, the result is 00. If all of the numbers are the same, the result is 2020. If two of the numbers are the same, the result is 1010.

Input Format

Input is given from Standard Input in the following format:

aa bb cc

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: 11 second, Memory limit: 10241024 KiB for each test case.