← All problemsSign in

Divide the Pie

Rama loves pizza. He cuts them into slices and sells them. You are to help him in this work. Today Rama has cooked a brand new pizza. To split it, Rama can make several (possibly, zero) cuts. Each cut should be a straight line going from the center of the pizza to its border. Also, the angle between any two cuts should have a positive integer value (Rama measures all the angles in degrees). Rama c

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