Problem D
King Arthur's Round Table
King Arthur has appointed you to find a table for he and his Knights of the Round Table to sit around while discussing the important matters of his kingdom.
Sometimes, the knights can get into heated discussions where they passionately wave their arms around while debating one another. When this happens, King Arthur wants to make sure that each knight has enough room so as not to accidentally hit one another.
As you search for tables, you need to ensure that the table’s circumference is large enough to comfortably accommodate all of the knights, without risk of them accidentally hitting one another. King Arthur will tell you how many knights need to fit at the table as well as how much space he wants each knight to have. You have measured the diameter of each table. You must determine whether or not the table is suitable for King Arthur and his Knights of the Round Table.
Input
The input consists of three lines. The first line contains a single real number, $d$, representing the diameter of the table in feet. The next line contains a single real number, $w$, representing the width around the edge of the table required by each knight to sit comfortably in feet. The last line contains a single integer, $n$, representing the number of knights that need to fit around the table.
Both $d$ and $w$ will be real numbers in the range $(0, 10000]$ and will have at most 9 digits after the decimal point. $n$ will be an integer between $1$ and $50\, 000$, inclusive.
Output
Output YES if the table has enough room for all of King Arthur’s Knights of the Round Table. Output NO if the table does not have enough room for all of King Arthur’s Knights of the Round Table.
Assume that $\pi = 3.14159$.
Sample Input 1 | Sample Output 1 |
---|---|
10.0 3.0 10 |
YES |
Sample Input 2 | Sample Output 2 |
---|---|
10.0 3.0 11 |
NO |