# ZeroJudge - a044: 空間切割 ### 題目連結:https://zerojudge.tw/ShowProblem?problemid=a044 ###### tags: `ZeroJudge` `數學` `幾何` ```cpp= #include <iostream> using namespace std; int main() { cin.sync_with_stdio(false); cin.tie(nullptr); int planes; while (cin >> planes) cout << (planes * planes + 5) * planes / 6 + 1 << '\n'; } ```