Ad
  • Custom User Avatar

    No, read the posts below before creating a new issue about the same.

  • Custom User Avatar

    Explanation:

    (the counter n is 1-based to make it easier to read)

    • Three 1's => 1000 points : n[1]/3*1000 Note: all these are int arithmetic
    • Three 6's => 600 points : n[6]/3*600
    • Three 5's => 500 points : n[5]/3*500
    • Three 4's => 400 points : n[4]/3*400
    • Three 3's => 300 points : n[3]/3*300
    • Three 2's => 200 points : n[2]/3*200
    • One 1 => 100 points : n[1]%3*100 use mod to catch the remainder 1's not worth 1000 points
    • One 5 => 50 point : n[5]%3*50 use mod to catch the remainder 5's not worth 500 points