Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- one_bgn_count = int(input())
- two_bgn_count = int(input())
- three_bgn_count = int(input())
- total = int(input())
- for i in range(0, one_bgn_count + 1):
- for j in range(0, two_bgn_count + 1):
- for k in range(0, three_bgn_count + 1):
- if i * 1 + j * 2 + k * 5 == total:
- print(f'{i} * 1 lv. + {j} * 2 lv. + {k} * 5 lv. = {total} lv.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement