{"problem":{"name":"[GESP202509 一级] 金字塔","description":{"content":"金字塔由 $n$ 层石块垒成。从塔底向上，每层依次需要 $n \\times n, (n-1) \\times (n-1), \\cdots, 2 \\times 2, 1 \\times 1$ 块石块。请问搭建金字塔总共需要多少块石块？","description_type":"Markdown"},"platform":"Luogu","limit":{"time_limit":1000,"memory_limit":524288},"difficulty":{"LuoguStyle":"P1"},"is_remote":true,"is_sync":true,"sync_url":null,"sign":"LGB4410"},"statements":[{"statement_type":"Markdown","content":"金字塔由 $n$ 层石块垒成。从塔底向上，每层依次需要 $n \\times n, (n-1) \\times (n-1), \\cdots, 2 \\times 2, 1 \\times 1$ 块石块。请问搭建金字塔总共需要多少块石块？\n\n## Input\n\n一行，一个正整数 $n$，表示金字塔的层数。\n\n## Output\n\n一行，一个正整数，表示搭建金字塔所需的石块数量。\n\n[samples]\n\n## Background\n\n对应的选择、判断题：<https://ti.luogu.com.cn/problemset/1189>\n\n## Note\n\n对于所有测试点，保证 $1 \\leq n \\leq 50$。","is_translate":false,"language":"English"}],"meta":{"iden":"LGB4410","tags":["2025","循环结构","GESP"],"sample_group":[["2","5"],["5","55"]],"created_at":"2026-03-03 11:09:25"}}