Casino

In order to play table games at the casino you need some tokens. Red tokens cost 77 euros and yellow tokens cost 44. Write a function @buy_tokens(n)@ that given a number nn of euros such that n≥20n \ge 20, it returns the equivalence in tokens. When several equivalences are possible the function returns the one minimizing the total number of tokens.

Sample session

Problem information

Author: Jorge Castro

Generation: 2026-01-25T17:40:08.581Z

© Jutge.org, 2006–2026.
https://jutge.org