文章分类 -  代码

摘要:JZOJ5787 轨道 的代码 #include<bits/stdc++.h> using namespace std; const int maxn=30001; const int maxm=3200; const int maxv=1e7; const int mod=10007; int n 阅读全文
posted @ 2024-06-07 10:47 DeepSeaSpray 阅读(25) 评论(0) 推荐(0)
摘要:Press's Code #include<bits/stdc++.h> using namespace std; #define P pair<int,int> #define fir first #define sec second const int maxn=5*1e5; const int 阅读全文
posted @ 2024-06-06 11:32 DeepSeaSpray 阅读(10) 评论(0) 推荐(0)
摘要:P4491 [HAOI2018] 染色 的代码 #include<bits/stdc++.h> using namespace std; #define int long long const int maxn=2e7; const int mod=1004535809; const int mg= 阅读全文
posted @ 2024-05-30 20:15 DeepSeaSpray 阅读(16) 评论(0) 推荐(0)
摘要:P3327 [SDOI2015] 约数个数和 的代码 #include<bits/stdc++.h> using namespace std; #define int long long const int N=5*1e4; const int maxn=N; int T,n,m; int ans; 阅读全文
posted @ 2024-05-25 08:25 DeepSeaSpray 阅读(22) 评论(0) 推荐(0)
摘要:P1447 [NOI2010] 能量采集 的代码 #include<bits/stdc++.h> using namespace std; const int maxn=1e5; #define int long long int n,m; int N,ans; bool vis[maxn+5]; 阅读全文
posted @ 2024-05-22 21:34 DeepSeaSpray 阅读(27) 评论(0) 推荐(0)
摘要:P3380 【模板】树套树 的代码 #include<bits/stdc++.h> using namespace std; const int maxn=5*1e4; const int maxm=500; const int inf=1e8; int n,m; int root; int a[m 阅读全文
posted @ 2024-05-16 22:12 DeepSeaSpray 阅读(34) 评论(0) 推荐(0)
摘要:P2495 [SDOI2011] 消耗战 的代码 #include<bits/stdc++.h> using namespace std; #define int long long const int maxn=5*1e5; const int maxm=20; const int inf=LLO 阅读全文
posted @ 2024-05-16 22:10 DeepSeaSpray 阅读(21) 评论(0) 推荐(0)
摘要:Brick's Code #include<bits/stdc++.h> using namespace std; #define int long long const int maxn=1e7; int n; int a[maxn+5]; namespace A{ int sm,L,mid; i 阅读全文
posted @ 2024-05-08 22:27 DeepSeaSpray 阅读(30) 评论(0) 推荐(0)
摘要:Crystal's Code #include<bits/stdc++.h> using namespace std; #define int long long const int maxn=1e3; const int mod=998244353; struct Node{ int a,b,c, 阅读全文
posted @ 2024-05-07 22:13 DeepSeaSpray 阅读(50) 评论(0) 推荐(0)
摘要:Garden's Code #include<bits/stdc++.h> using namespace std; #define int long long const int maxn=1e3; const int dx[5]={1,-1,0,0}; const int dy[5]={0,0, 阅读全文
posted @ 2024-05-07 22:11 DeepSeaSpray 阅读(10) 评论(0) 推荐(0)