Problem Statement
We have a circular pizza.
Takahashi will cut this pizza using a sequence
AA of length
NN, according to the following procedure.
-
First, make a cut from the center in the 1212 o'clock direction.
-
Next, do NN operations. The ii-th operation is as follows.
-
Rotate the pizza A_iAi degrees clockwise.
-
Then, make a cut from the center in the 1212 o'clock direction.
For example, if
A=(90,180,45,195)A=(90,180,45,195), the procedure cuts the pizza as follows.
Find the center angle of the largest pizza after the procedure.