From a594fda34878fb640a6933dea0bebc78472876d5 Mon Sep 17 00:00:00 2001 From: SD Date: Sat, 25 Nov 2017 18:26:45 +0800 Subject: [PATCH] Update Linear_Basis.cpp --- Linear_Basis.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Linear_Basis.cpp b/Linear_Basis.cpp index fcf0f49..31182b1 100644 --- a/Linear_Basis.cpp +++ b/Linear_Basis.cpp @@ -1,10 +1,10 @@ -#include +#include +#include #define ull unsigned long long using namespace std; -const int l=100; +const int MAXL=100; -template struct Linear_Basis{ ull a[MAXL+3]; @@ -29,4 +29,15 @@ struct Linear_Basis{ } } } + + inline void mergefrom(const Linear_Basis &rhs){ + for(int i=0;i