题解:P10065 [SNOI2024] 字符树
#include #include #include #define BUFSIZE 10000000 struct read{ char buf[BUFSIZE],*p1,*p2,c; read():p1(buf),p2(buf){} char gc(void){ return…
#include #include #include #define BUFSIZE 10000000 struct read{ char buf[BUFSIZE],*p1,*p2,c; read():p1(buf),p2(buf){} char gc(void){ return…
include <bits/stdc++.h> using namespace std; const int maxn = 5, maxm = 55, maxl = 155, mod = 11192869, mo = 500000; typedef long long ll; t…
#include #include using namespace std; int n,k,x[55],y[55],ans=0x3f3f3f3f; struct square { int empty=1,x1,x2,y1,y2;//x1<=x2 y1<=y2 void join…
#include<bits/stdc++.h> using namespace std; const int N=2005; int n,k,P,fact[N],invf[N],invp[N];vector f[N],L[N],h[N]; int qpow(int x,int y…
小神犇最近做出一道无题解黑题,来发一遍题解,望管理员大大通过
#include #include #include #include using namespace std; typedef long long ll; const int KR = 1e6 + 10, SZ = 3; ll n, k, P; ll kcnt = 0; ll …