Project Euler #126: Cuboid layers

Sort by

recency

|

9 Discussions

|

  • + 0 comments

    hi how to provide input to this solution

  • + 0 comments

    I can't manage to get it to run in time :C Any tips? So far I found the general and I'm just passing it layer, height, depth and width and add one to the amount of cubs found with the result's cubes. I did a very, very optimized version of that, but it doesn't run on time so I guess there is something I'm not catching. Any leads? Thanks.

  • + 2 comments

    can someone explain how c(154)=10

  • + 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.

  • + 1 comment

    There isn't any timelimit correct? I have nested loop with large values....