Equal Buying
Chef bought some number of sacks of flour, and some number of sacks of sugar. It is unknown exactly how many of each. Each sack of flour weighs $2$ kilograms, and each sack of sugar weighs $1$ kilogram. It is known that the total weight of Chef's sacks of flours and sugar was $N$ kilograms. Is it possible that Chef bought an equal number of sacks of flour and sugar? Print $\text{Yes}$ if it is p
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start