We want to send a postcard by mail. We need to stamp worth cents. Stamps have values 7 and 4 cents. As space is limited we want to know the minimum number of stamps we need to put on the postcard, without losing a cent.
The input is a sequence of integer numbers. Each number in the sequence is greater than .
For each integer in the input, a line with two numbers and such that and is minimum among all possible choices.
Author: Jorge Castro
Generation: 2026-01-25T21:31:12.101Z
© Jutge.org, 2006–2026.
https://jutge.org