Skip to main content
4 of 6
deleted 160 characters in body
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384

#05AB1E, 16 14 13 11 bytes

3L×0KJ‚€{íË

Takes the medals input in the order [bronze, silver, gold] as first input, and reputation as second input.

Try it online or verify all test cases.

Explanation:

3L           # Push the list [1,2,3]
  ×          # Repeat the values in the (implicit) input-list that many times as string
   0K        # Remove all 0s (so all "0", "00" and "000")
     J       # Join the strings in the list together
      ‚      # Pair this string with the (implicit) second input
       €{í   # Sort the digits in both strings in descending order
          Ë  # And check if both are now equal
             # (after which the result is output implicitly as result)
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384