Casino

In order to play table games at the casino you need some tokens. Red
tokens cost 7 euros and yellow tokens cost 4. Write a function
@buy_tokens(n)@ that given a number n of euros such that n ≥ 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
