Chef and pizza
CodeChefOpen on judge ↗
chef love pizza, it is his most favorite food. He has two piles of pizza. Now chef can do the following operations. - He eats one pizza form first pile and two from the second piles or he eats one from the second pile and two from the first pile. since chef like pizza so much he wants to eat all of them, which means he wants to make both piles empty, tell the chef weather it is possible or not. #
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