提交时间:2023-05-27 14:09:01
运行 ID: 74515
#include<bits/stdc++.h> using namespace std; int n; unsigned long long ans; int main(){ cin>>n; cout<<n*(n+1)*(n*2+1)/6; return 0; }