Triangle Counting UVA - 11401(递推)

大白书讲的很好。。 #include <iostream> #include <cstring> using namespace std; typedef long long LL; const int MAXN = 1001000; LL n,A[MAXN]; int main() { A[3] = 0; for(LL i=4;i<MAXN;i++) A[i]
相关文章
相关标签/搜索