Id
1739
Title
Here is the Cake
Tags
math
partition problem
Brief solution
a = x - x / 3;(a * (a + 1)/2 + 1) * (x + 1 - a);
time usage:0.478190