#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin>>n;
cout<<(n*(n+1)*(n+2)>>1)<<'\n';//右移一位相当于/2,但运行速度更快
return 0;
}
P7540 [COCI2009-2010#1] DOMINO
最新推荐文章于 2025-12-06 19:00:36 发布
由于未提供博客具体内容,无法生成包含关键信息的摘要。
303

被折叠的 条评论
为什么被折叠?



