GO Solution For UVa 10365 - Blocks. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Donald wishes to send a gift to his new nephew, Fooey. Donald is a bit of a tra- ditionalist, so he has chosen to send a set of N classic baby blocks. Each block is a cube, 1 inch by 1 inch by 1 inch. Donald wants to stack the blocks together into a rectangular solid and wrap them all up in brown pa

...

You can find the full details of the problem Blocks at UVa Online Judge

Sample Input

5
9
10
26
27
100

Sample Output

30
34
82
54
130

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985