Problem A
Pizza Crust

Photo by cyclonebill.

George has bought a pizza. George loves cheese. George thinks the pizza does not have enough cheese. George gets angry.

George’s pizza is round, and has a radius of $R$ cm. The outermost $C$ cm is crust, and does not have cheese. What percent of George’s pizza has cheese?


The input consists of a single line with two space separated integers, $R$ and $C$.


Output the percentage of the pizza that has cheese. Your answer must have an absolute or relative error of at most $10^{-6}$.


  • $1 \leq C \leq R \leq 100$

Sample Input 1 Sample Output 1
1 1
Sample Input 2 Sample Output 2
2 1

Please log in to submit a solution to this problem

Log in