Company: Autodesk_30sep
Difficulty: medium
Dice Rolling Competition Score Problem Description Since you love games of chance, you've decided to participate in a dice-rolling competition. The competition involves rolling three 6-sided dice, and the results of each die are represented by the integers a , b , and c respectively. Scores are calculated according to the following rules: 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 , your task is to calculate and return your total score. You need to implement the following function: int solution(int a, int b, int c) Examples Example 1: Input: a = 3, b = 3, c = 3 Output: 3000 Explanation: Since all of the dice have the same value ( a = b = c = 3 ), your total score is equal to 1000 * 3 = 3000 . Example 2: Input: a = 3, b = 6, c = 3 Output: 1500 Explanation: Since exact