Skip to content

shatteredcake

bradendubois edited this page Nov 8, 2021 · 8 revisions

Shattered Cake

ID: shatteredcake

Difficulty: 1.4

CPU Time: 6 seconds

Memory: 1024 MB

Solution

For this, since W * some L = the total area of the cake, and the cake is split amongst the N pieces, if we add up the area of each piece as they are read in, and divide that total area by W, the result will be the missing L.

Clone this wiki locally