As the builder employed by NIO, you need to build more walls for him. Now you have a number of bricks of height 111 but with different lengths. More precisely, you have nnn bricks of length 111, n−1n-1n−1 bricks of length 222, ..., two bricks of length n−1n-1n−1, and one brick of length nnn. The width of the bricks is negligible. You need to build a wall with these bricks whose shape must be strictly rectangular. When building the wall, you must keep the height of the bricks at 111, which means you cannot rotate them.
Of course, you can definitely build a wall with a height of
111 and a large length, but it is not a beautiful wall. In NIO's opinion, a beautiful wall should have the minimum possible circumference. Please tell him the minimum circumference of the wall, and how to build it.