Project Euler #126: Cuboid layers

  • + 2 comments

    can someone give me a hint on how the calculation did on the 3x2x2? because my algorithm gives me 32 cubes to fully cover this, while one the problem page it says 46. by the way my algorithm for this: 2*(x*y + y*z + z*x), x,y,z is the with, height and depth of the object.