← All problemsSign in

Pizza And Slices

One day Pete and his friend Billy decided to buy a pizza. They chose the biggest one, in their opinion. The pizza contains $N$ slices. Pete and Billy are great fans of even numbers, that's why they want to divide the pizza in such a way that each of the two parts slices even number, at the same time it is not obligatory that the parts are equal. ###Input: - First line will contain $T$, numbe

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start