← All problemsSign in

PIZZA

Vasya has ordered a pizza delivery. The pizza can be considered a perfect circle. There were n premade cuts in the pizza when it was delivered. Each cut is a straight segment connecting the center of the pizza with its boundary. Let O be the center of the pizza, Pi be the endpoint of the i-th cut lying on the boundary, and R be the point of the boundary straight to the right of O. Then the coun

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