Company: Visa_17sep
Difficulty: medium
Dice Rolling Competition Problem Description You enjoy games of chance, so you have entered a dice-rolling competition. Each round involves rolling three 6-sided dice, whose outcomes are the integers a , b , and c . Your points for that round are worked out this way: If all three dice had the same value ( a = b = c ), you earn 1000 * a . If exactly two of them are the same, you earn 500 * x (where x is the value of the two equal dice). If all of them are different, you earn 100 * min(a, b, c) . Given the values of a , b , and c , work out and return the total points earned for that round. Examples Example 1: Input: a = 3, b = 3, c = 3 Output: 3000 Explanation: All three dice show the same value (3), so the total score comes to 1000 * 3 = 3000. Example 2: Input: a = 3, b = 6, c = 3 Output: 1500 Explanation: Exactly two of the dice match (a = c = 3), so the total score comes to 500 * 3 = 1500. Example 3: Input: a = 3, b = 2, c = 5 Output: 200 Explanation: All three dice show different va