摘要: <---点击左侧菜单栏以更好浏览AwA AWA 阅读全文
posted @ 2024-01-26 23:30 yeyou26 阅读(67) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const int N = 1e6+6; void Mergesort(int l,int r); int main() { freopen("working.in","r",stdin); freopen(" 阅读全文
posted @ 2024-01-26 21:02 yeyou26 阅读(78) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int a[114514]; void Quicksort(int l,int r); int main() { freopen("working.in","r",stdin); freopen("workin 阅读全文
posted @ 2024-01-26 21:01 yeyou26 阅读(31) 评论(0) 推荐(0)
摘要: lll Read() { bool flag=0; char ch=getchar(); lll ans=0; while(!isdigit(ch) && ~ch) { flag|=(ch=='-'); ch=getchar(); } while(isdigit(ch) && ~ch) { ans= 阅读全文
posted @ 2024-01-26 21:01 yeyou26 阅读(97) 评论(0) 推荐(0)
摘要: //lg 1226 //快速幂 #include<bits/stdc++.h> using namespace std; long long a,n,p; long long nn; long long qpow() { long long b=a; long long ans=1; while(n 阅读全文
posted @ 2024-01-26 20:59 yeyou26 阅读(36) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int bkt[1005]; int n; int a[10005]; int main() { n=100; srand(time(0)); for(int i=1;i<=n;i++) a[i]=rand() 阅读全文
posted @ 2024-01-26 20:59 yeyou26 阅读(17) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; #define N 101 int a[N]; void sort_mp() { for(int i=1;i<100;i++) { for(int j=1;j<100;j++) { if(a[j]>a[j+1] 阅读全文
posted @ 2024-01-26 20:59 yeyou26 阅读(18) 评论(0) 推荐(0)
摘要: //lg 2455 #include<bits/stdc++.h> using namespace std; const double eps = 0.000001; const int N = 105; double a[N][N]; int n; int nowline=1;//存储当前行 vo 阅读全文
posted @ 2024-01-26 20:59 yeyou26 阅读(23) 评论(0) 推荐(0)
摘要: //lg 3804 //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; //注意:这道题不是纯纯的后缀自动机,main函数有一点额外处理 #define ll long long #define N (int(2e6+6) 阅读全文
posted @ 2024-01-26 20:58 yeyou26 阅读(22) 评论(0) 推荐(0)
摘要: //lg p3812 #include<bits/stdc++.h> using namespace std; #define ll unsigned long long ll d[100]; int n; void Insert(ll x) { for(int i=62;i>=1;i--) { i 阅读全文
posted @ 2024-01-26 20:58 yeyou26 阅读(27) 评论(0) 推荐(0)
摘要: //lg p3809 sa模板题 //Copyright yeyou26 //额外数据测试lcp //input:aabaaaab //output:sa:4 5 6 1 7 2 8 3 // lcp:0 3 2 3 1 2 0 1 #include<bits/stdc++.h> using nam 阅读全文
posted @ 2024-01-26 20:56 yeyou26 阅读(29) 评论(0) 推荐(0)
摘要: //lg p3808 //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; string mainstring; string ss[(int)1e6+6]; int cnt[(int)1e6+6]; int n; int 阅读全文
posted @ 2024-01-26 20:56 yeyou26 阅读(34) 评论(0) 推荐(0)
摘要: //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; const int N = 11145; int t[N][150]; int idx; int cnt[N]; int n,m,t[N][150],idx,cnt[N] 阅读全文
posted @ 2024-01-26 20:56 yeyou26 阅读(45) 评论(0) 推荐(0)
摘要: //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; const int N = 11145; int n,m,t[N][150],idx,cnt[N]; inline int trans(char c) {return c 阅读全文
posted @ 2024-01-26 20:56 yeyou26 阅读(49) 评论(0) 推荐(0)
摘要: //lg p5410 //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; const int N = (2e7)+10; char a[N],b[N]; int p[N],z[N]; int lena,lenb; long 阅读全文
posted @ 2024-01-26 20:55 yeyou26 阅读(29) 评论(0) 推荐(0)
摘要: //lg 3805 //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; int d[2*N]; char ipt[N]; char c[2*N]; int n; void init() { cin>>(ipt+1); c[ 阅读全文
posted @ 2024-01-26 20:55 yeyou26 阅读(84) 评论(0) 推荐(0)
摘要: //lg p3375 //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; char p[1000005],s[1000005]; int lenp,lens; int lst[1000005]; void init(); 阅读全文
posted @ 2024-01-26 20:54 yeyou26 阅读(30) 评论(0) 推荐(0)
摘要: //lg p3370 //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; #define ull unsigned long long const ull p=998244353; string s; ull now_ha 阅读全文
posted @ 2024-01-26 20:54 yeyou26 阅读(35) 评论(0) 推荐(0)
摘要: //lg p1368 //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; const int N = 300005; int a[2*N]; int n; void init() { scanf("%d",&n); for 阅读全文
posted @ 2024-01-26 20:54 yeyou26 阅读(17) 评论(0) 推荐(0)
摘要: //强连通分量 //lg 2863 求强连通分量的数量 #include<bits/stdc++.h> using namespace std; const int N = (int)2e4+4; int where[N];//这个点在哪个scc里 int scccnt; int sccsize[N 阅读全文
posted @ 2024-01-26 20:51 yeyou26 阅读(27) 评论(0) 推荐(0)
摘要: //lg 1908 求逆序对 //Copyright yeyou26 #include<bits/stdc++.h> using namespace std; #define ll long long const int N = (int)1e6+6; ll sum; int n; struct D 阅读全文
posted @ 2024-01-26 20:49 yeyou26 阅读(30) 评论(0) 推荐(0)
摘要: 基本 对于一个值域为1-N的集合S 它的线性基的值域与S相同 它的线性基中的元素个数小于等于logN 集合S中任意数异或和存在于线性基中 线性基任意数异或和存在于集合S中 插入 首先,线性基大体长这样 XXXXX 称为第[线性基中数的个数]个数 口XXXX 口口口XX 口口口口X 称为第1个数 d[ 阅读全文
posted @ 2024-01-26 20:19 yeyou26 阅读(52) 评论(0) 推荐(0)
摘要: memset 相关 0 \(\quad\)//0 -1\(\quad\)//-1 0x3f //int 和 long long 较大值 相加不爆 0x7f //int 和 long long 最大值 相加会爆 double 较大值 0xc0 //int 和 long long 较小值 相加不爆 0x 阅读全文
posted @ 2024-01-26 20:18 yeyou26 阅读(29) 评论(0) 推荐(0)
摘要: 校OJ 洛谷 CodeForces B站 网易云 QQ 2895088590 阅读全文
posted @ 2024-01-26 08:11 yeyou26 阅读(39) 评论(0) 推荐(0)
摘要: AwA 随笔 警钟长鸣 梗 阅读全文
posted @ 2024-01-26 08:10 yeyou26 阅读(37) 评论(0) 推荐(0)
摘要: 查询类博客 OI tips 快查 金牌导航 阅读全文
posted @ 2024-01-26 08:02 yeyou26 阅读(27) 评论(0) 推荐(0)
摘要: 学习笔记 线性基(删除操作待填) 关于图论的一切 关于数据结构的一切 关于数论和平面几何的一切 阅读全文
posted @ 2024-01-26 08:00 yeyou26 阅读(77) 评论(2) 推荐(0)