MWC '15 #6 P1: Regpo

View as PDF

Submit solution

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

Problem type

"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 N sides to 6 decimal places."

"Does mod apply here?"



"Just google it."

"You noob!", Hypnova chimed in.

Input Specification

A single integer N (3 \le N \le 1000).

Output Specification

The exterior angle in degrees of a regular polygon with N sides. Your answer will be accepted within an error range of \pm 10^{-6}.

Sample Input


Sample Output


Explanation for Sample Output

The exterior angle of a regular triangle is 120^{\circ}.


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


There are no comments at the moment.