## MWC '15 #6 P1: Regpo

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

"public static void main string array args throws IOException", atarw muttered to himself while doing the Code Jam. He laughed for he knows he no longer has to type that. He mastered C++. With the unfamiliar brevity of code, he aced the contest. "Round 2" he thought. Things were going well for atarw until aurpine brought up the topic of math.

"Did you finish the regular polygon program?", aurpine asked.

atarw cursed. "What's that? Is that like regular expressions? Heh. Java...".

"Are you okay?" aurpine asked. "You've spent the last ten hours learning C++!".

"I am King Modulus after all".

"If you say so... But as a reminder, you had to make a program to find the exterior angle of a regular polygon with sides to 6 decimal places. ".

"Does mod apply here?".

"No.".

";_;".

"You noob!", Hypnova chimed in.

#### Input Specification

A single integer .

#### Output Specification

The exterior angle in degrees of a regular polygon with sides. Your answer will be accepted within an error range of .

#### Sample Input

3

#### Sample Output

120

#### Explanation for Sample Output

The exterior angle of a regular triangle is .

#### Epilogue

"aurpine are you daydreaming again?!" his math teacher yelled.