Please help me with UVA 10365 — Blocks (why answer 2(N*1 + 1*1 + N*1) is incorrect)?

Revision en3, by gauti786, 2017-10-02 11:55:54

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?

Tags uva, uva 10365

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English gauti786 2017-10-02 11:55:54 22
en2 English gauti786 2017-10-02 10:39:31 22
en1 English gauti786 2017-10-02 10:38:56 371 Initial revision (published)