pizza2 - bradendubois/competitive-programming GitHub Wiki

Pizza Crust

ID: pizza2

Difficulty: 1.7

CPU Time: 1 second

Memory: 1024 MB

Solution

For this, one can calculate the area of the cheese-area of the pizza (pi * C-R ^ 2) divided by the area of the entire pizza (pi * R^2), and scale by 100.