fork download
  1. # your code goes here
  2. DICE = list(map(int, input().split()))
  3.  
  4. samenum = 0
  5. cnt = 0
  6. prize = 0
  7. highScore = 0
  8.  
  9. for i in range(3):
  10. if DICE[i] == DICE[(i + 1) % 3]:
  11. samenum = DICE[i]
  12. cnt += 1
  13. highScore = max(DICE[i], DICE[(i + 1) % 3])
  14.  
  15. if cnt == 3:
  16. prize = 10000 + samenum * 1000
  17. elif cnt == 1:
  18. prize = 1000 + samenum * 100
  19. else:
  20. prize = highScore * 100
  21.  
  22. print(prize)
Success #stdin #stdout 0.03s 9768KB
stdin
1 5 2
stdout
200