Please go to the UVA problem link..****
I was considering as length = N, width = 1, height = 1, which leads us to surface area = 2(N*1 + 1*1 + N*1)?
Why this is incorrect, and we need to go through all the combination of length, width, and height?
Please help me with UVA 10365 — Blocks (why answer 2(N*1 + 1*1 + N*1) is incorrect)?
Please go to the UVA problem link..****
I was considering as length = N, width = 1, height = 1, which leads us to surface area = 2(N*1 + 1*1 + N*1)?
Why this is incorrect, and we need to go through all the combination of length, width, and height?