Happy Pizza
CodeChefOpen on judge ↗
One cold winter day Jack and his friend Jill went to cafe to have a Pizza. They chose a bigger pizza so as to satisfy their appetite. They decided to share and weighed the pizza, it came out as X grams. They took it to their table and decide to divide the pizza. Jack and Jill are fond of even numbers, they decided to divide the pizza such that it weighs in even weight. Adding to it, the partition
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