跳到正文

Qw3Ts_

1419482

原 Backpack_dp||无蓝钩不改||无金钩不改

这是 2026年10月30日 存档的第 3 版,不是当前版本。查看当前版本

资料、奖项与版本

曾用名:

YZNNN(2024.08.09-2025.08.05)

Backpack_dp (2025.08.09-2026.08.13)

备忘录

  • 学线段树&树状数组
  • 学并查集
  • 学动态规划
  • 学动态规划
  • 学数论
  • 写差分前缀和离散化双指针二分
  • 学最小生成树&最短路

OI大事ji

2024-08-09 入住洛谷

2024-08-09 14:19 首红\texttt{\color{red}红}

2024-08-12 21:29 首绿\texttt{\color{green}绿}

2024-08-12 21:45 首蓝\texttt{\color{blue}蓝}

2024-08-12 21:55 首黄\text{\color{yellow}黄}

2024-08-13 09:26 首橙\texttt{\color{orange}橙}

2024-09 CSP2024-J1\text{CSP2024-J1} 87\texttt{87} pts

2024-09 CSP2024-S1\text{CSP2024-S1} 52\texttt{52} pts

2024-10 CSP2024-J2\text{CSP2024-J2} 260\texttt{260} pts

2024-10 CSP2024-S2\text{CSP2024-S2} 0\color{red}\texttt 0 pts

2024-10-16 00:22 首黒\texttt{\color{black}黒}

2024-11-09 蓝名{\texttt{\color{blue}{蓝名}}}

2025-01-09 22:57 首紫\texttt{\color{purple}紫}

2025-03-02 洛谷 100th\color{yellow}\texttt{100th} 题

2025-03-07 绿名\texttt{\color{green}{绿名}}

2025-03-23 被 @ Gs_The_Wolrd \color{green}\texttt{Gs\_The\_Wolrd } 机惨力

2025-03-29 20:03 获得 5\texttt{\color{green}5} 级钩

2025-05-04 等级分 178178

2025-05-23 粉丝数达到 10\texttt{10}

2025-06-02 橙名\color{orange}{\texttt{橙名}}

2025-06-21 ABC 第一次 AC C\texttt C

2025-07-03 洛谷 200th\texttt{\color{orange}200th} 题

2025-07-23 粉丝数达到 100\texttt{100}

2025-07-29 洛谷 300th\texttt{\color{red}300th} 题

2025-08-03 神贴 *1\texttt{*1}+ 删除的东东 *1\texttt{*1}

2025-08-13 粉丝数达到 200\texttt{200}

2025-08-23 09:19:42 洛谷 2rd\texttt{\color{black}2rd} 黑

2025-08-31 洛谷 400th\texttt{\color{yellow}400th} 题

2025-09-18 第一次蓝=紫=8\textcolor{blue}蓝=\textcolor{purple}紫=8 祭祭

2025-09-21 CSP2025-J/S1\text {CSP2025-J/S1} 估分J69J\texttt{69} S48.5S\texttt{48.5}

2025-09-20 CSP2025-J1\text{CSP2025-J1} 76\texttt{76} pts

2025-09-20 CSP2025-S1\text{CSP2025-S1} 46.5\texttt{46.5} pts

2025-09-26 1k通过 祭 版本更新于是没了

2025-09-28 成就咕5858荣登咕值榜 成就#986 祭祭

2025-10-01 00:59:56 114114黄\color{yellow}黄 祭祭

2025-10-06 成就咕 6262 来到成就咕排行榜14页 成就#7xx 祭祭 (排名忘了)

2025-10-09 因为虚拟机忘记登出而被@ zhuxitai\texttt{\color{orange}{zhuxitai}} 机惨 祭祭

2025-10-11 00:22:15 10紫\color{purple}紫 祭祭(别问我为啥这么快问就是同学写的)

2025-10-13 练习咕 6464 来到练习咕排行榜12页 练习#569 祭祭

2025-10-16 00:49:07 50绿\color{green}绿 祭祭

2025-10-27 练习咕 6767 来到练习咕排行榜10页 练习#472 祭祭

2025-11-03 练习咕 6868 来到练习咕排行榜9页 练习#448 祭祭

2025-11 CSP−J第二轮CSP-J第二轮 215215pts 没祭没祭

2025-11 CSP−S第二轮CSP-S第二轮 00pts 没祭没祭

2025-11-16 242^4蓝\color{blue}蓝 祭祭

2025-11-16 绿+蓝+紫+黑=100\color{green}绿\color{black}+\color{blue}蓝\color{black}+ \color{violet}紫\color{black}+黑=100 祭祭

2025-08-31 洛谷 600 题& 600提交祭\textcolor{orange}祭

2026-01-18 红名祭{\textcolor{red}{红名}}祭

2026-03-29 洛谷 800th\texttt{\color{yellow}800th} 题

2026-08-18 00:22:20 洛谷 900th\texttt{\color{green}900th} 题

2026-09-30 来得早不如来得巧

2026-09-29 被封禁力

。

地址江西·南昌
年龄15 岁/高一
生日2011.08.27\texttt{2011.08.27}
QQ号3620132107@qq.com\texttt{3620132107@qq.com}
邮箱
电话19372408983\texttt{19372408983}
微信
Atcoder
CodeForces
bilibiliQw3Ts\texttt{Qw3Ts}

存火车头

C++
#include<bits/stdc++.h>
using namespace std;
#define Mod 998244353
#define mod 1000000007
#define IOS cin.tie(0),cout.tie(0),ios::sync_with_stdio(0)
#define pb push_back
#define N 100010
//#define int long long
#define ll __int128
#define F(x,a,b) for(int x=(a);x<=(b);x++)
#define f(x,a,b) for(int x=(a);x>=(b);x--)
#define Ms(a,x) memset((a),(x),sizeof(a));
#define lbt(x)  ((x)&(-(x)))
#define lb lower_bound
#define ub upper_bound
#define pii pair<int,int>
#define gcd __gcd
#define yes cout<<"yes\n"
#define no cout<<"no\n"
#define YES cout<<"YES\n"
#define NO cout<<"NO\n"
#define fi first
#define se second
int qp(int a,int b,int p){
	int res=1;
	while(b){if(b&1)res=res*a%p;a=a*a%p,b>>=1;}
	return res%p;
}

int Inv(int a,int p){
	return (qp(a,p-2,p))%p;
}

void initfac(int p,int* fac,int* ifac){
	fac[0]=fac[1]=1;
	F(i,2,p-1)fac[i]=fac[i-1]*i%p;
	ifac[p-1]=Inv(fac[p-1],p);
	f(i,p-2,0)ifac[i]=ifac[i+1]/(i+1);
}

auto topo(vector<int>g[],int* ind,int n){
	vector<int>ans;
	queue<int>q;
	F(i,1,n)if(!ind[i])q.push(i);
	while(!q.empty()){
		int u=q.front();q.pop();
		ans.pb(u);
		for(auto v:g[u]){
			ind[v]--;
			if(!ind[v])q.push(v);
		}
	}return ans;
}

auto spfa(vector<pii>g[],int s,int n){
	vector<int> dis(n+1,0x3f3f3f3f),vis(n+1,0);
	queue<int>q;
	dis[s]=0,vis[s]=1,q.push(s);
	while(!q.empty()){
		int h=q.front();
		vis[h]=0;q.pop();
		for(auto x:g[h]){
			if(dis[x.fi]>dis[h]+x.se){
				dis[x.fi]=dis[h]+x.se;
				if(!vis[x.fi])vis[x.fi]=1,q.push(x.fi);
			}
		}
	}return dis;
}

auto spfa_slf(vector<pii> g[], int s, int n) {
   vector<int>dis(n+1,0x3f3f3f3f),vis(n+1,0);
   deque<int>q;
   dis[s]=0;vis[s]=1;
   q.pb(s);
   while(!q.empty()){
		int u=q.front();q.pop_front();
		vis[u]=0;
		for(auto x:g[u]){
			if(dis[x.fi]>dis[u]+x.se){
				dis[x.fi]=dis[u]+x.se;
				if(!q.empty()&&dis[x.fi]<dis[q.front()])q.push_front(x.fi);
				else q.pb(x.fi);
			}
		}
   }
   return dis;
}

void tarjan(vector<int>g[],int u,vector<int>& dfn,vector<int>& low,vector<int>& bel,int& tim,int& scc,stack<int>& st){
	dfn[u]=low[u]=++tim;
	st.push(u);
	for(auto v:g[u]){
		if(!dfn[v]){
			tarjan(g,v,dfn,low,bel,tim,scc,st);
			low[u]=min(low[u],low[v]);
		}
		else{
			if(!bel[v]){
				low[u]=min(low[u],dfn[v]);
			}
		}
	}
	if(dfn[u]==low[u]){
		scc++;
		int val;
		do{
			val=st.top();
			st.pop();
			bel[val]=scc;
		}while(val!=u);
	}
}

auto Tar(vector<int>g[],int n){
	vector<int>dfn(n+1,0),low(n+1,0),bel(n+2,0);
	stack<int>st;
	int tim=0,scc=0;
	for(int i=1;i<=n;i++){
		if(!dfn[i])tarjan(g,i,dfn,low,bel,tim,scc,st);
	}
	bel[n+1]=scc;
	return bel;
}

auto stp(vector<int>g[],vector<int>bel,int n,int scc){
	vector<int>gp[N];
	vector<int>siz(scc+1,0),outd(scc+1,0);
	F(u,1,n){
		siz[bel[u]]++;
		for(auto v:g[u]){
			if(bel[u]!=bel[v]){
				gp[bel[u]].pb(bel[v]);
				outd[bel[u]]++;
			}
		} 
	} 
	return make_pair(siz,outd);
} 

signed main(){
	IOS;
//	freopen(".in","r",stdin);
//	freopen(".out","w",stdout);
	return 0;
}