51Nod 1259 - 整数划分 V2(五边形数定理)

【题目描述】 【思路】 大佬的博客 记板子 #include<bits/stdc++.h> #define f(x)(((x)*(3*(x)-1))>>1) #define g(x)(((x)*(3*(x)+1))>>1) using namespace std; const int mod=1e9+7; const int maxn=100005; int n,ans[maxn]; int
相关文章
相关标签/搜索