Id1739
TitleHere is the Cake
Tagsmath
partition problem
Brief solutiona = x - x / 3;(a * (a + 1)/2 + 1) * (x + 1 - a);
time usage:0.478190