efficient simplicial numbers in miscfunc
This commit is contained in:
10
t.cc
10
t.cc
@@ -28,6 +28,7 @@
|
||||
#include "simple.h"
|
||||
#include "graph.h"
|
||||
#include "numbers.h"
|
||||
#include "miscfunc.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
@@ -3161,7 +3162,7 @@ cout <<a.rsum()<<endl;
|
||||
cout <<a.csum()<<endl;
|
||||
}
|
||||
|
||||
if(1)
|
||||
if(0)
|
||||
{
|
||||
int n;
|
||||
cin>>n;
|
||||
@@ -3175,5 +3176,12 @@ for(int l=1; l<k; ++l)
|
||||
cout <<count<<" "<<binom(n,4)<<endl;
|
||||
}
|
||||
|
||||
if(1)
|
||||
{
|
||||
int d,n;
|
||||
cin>>d>>n;
|
||||
cout <<simplicial(d,n)<<" "<<binom(n+d-1,d)<<endl;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user