摘要: priority_queue 默认大顶堆 小顶堆 priority_queue<int,vector,greater > small_heap; 优先队列的修改 include<bits/stdc++.h> using namespace std; const int N=1010,M=10010; 阅读全文
posted @ 2024-04-19 22:00 niubuniu 阅读(2) 评论(0) 推荐(0) 编辑
摘要: include <bits/stdc++.h> using namespace std; void fun(string a, string b) { int t = b.find(a[0]); if (t != 0) fun(a.substr(1, t), b.substr(0, t)); if 阅读全文
posted @ 2024-04-19 21:57 niubuniu 阅读(1) 评论(0) 推荐(0) 编辑