In-Depth Analysis of GESP Certification C++ Level 1 Questions (Programming Problem — Pyramid) for September 2025

【Problem Description】 The pyramid is constructed withn layers, with each layer requiringn×n,(n−1)×(n−1),…,2×2,1×1 blocks of stone. How many blocks of stone are needed to build the pyramid in total? 【Input】 A single line containing a positive integern, representing the number of layers of the pyramid. 【Output】 A single line containing a positive integer, representing the number … Read more