Ad
  • Custom User Avatar

    I published a new version of the translation, if you want the new set up, save your code locally and click reset in the trainer.

  • Custom User Avatar

    This is a variadic function. You can have a look there to see how it works: https://www.freecodecamp.org/news/args-and-kwargs-in-python/

    You can add *args as arguments and do your job.

  • Default User Avatar

    If you have only 2 types of coins/money denominations (Google translate tells me that this is "номинал денег" I hope that's correct) - let's say you have infinitely many 2-euro coins and infinitely many 3-euro coins:

    You can make the TOTAL amounts
    2 euros: 1x 2 euro coin/
    3 euros: 1x 3 euro coin/
    4 euros: 2x 2 euro coin/
    5 euros: 1x 2 euro coin, 1x 3 euro coin
    etc.

    but you CANNOT make 1 euro total.

    For a given pair of values (here the pair is 2,3) find the maximum total you CANNOT make.

    Hope that helps!