Holly Birthday Cake
All submissions for this problem are available.Due to Walter's work schedule, there is tension between Walter and Skyler, which in turn is leading to divorce. Skyler being the mother of his newborn child has custody of them and does not allow Walter to come to her daughter-holly's birthday. Walter hires Mehul for the job. (Assume the cake to be a circle, with centre as point A). There are some rules regarding cake cutting. First Skyler chooses two points (B and C) on the circumference of the cake and cuts a piece joining the two points with another point D on the circumference, as shown in the [image](https://ibb.co/Dzj8HDb). After this Mehul has to cut a new cake through the same two points (B and C), and the center A. Thus joining point B with A and point C with A as shown in this [image](https://ibb.co/XkRCtpM). You will be given the angle BDC cut by Skyler. Help Mehul find the angle of his piece of cake for Walter to enjoy his daughter's birthday. ###Input: - First line will contain $A$ the angle (in degrees) of Skyler's piece. ###Output: Print the angle Mehul can cut. ###Constraints - $1 \leq A \leq 180$ Angle $A$ is a rational number, so be careful with the data type. Think about all the ways to cut the cake. Only internal angles should be considered. ###Sample Input: 30 ###Sample Output: 60 ###EXPLANATION: Angle of Skyler's piece (ie angle BDC) is 30 deg so the angle at centre will be 60 deg.
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, SQL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions