《算法竞赛进阶指南》
略
平平无奇的问题制造小能手
这个作者很懒,什么都没留下…
展开
-
2021-03-25 0x04 基本算法-二分
1.题意: 2.题解: 3.ac代码: 在这里插入代码片 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 1.题意: 2.题解: 3.ac代码: 在这里插入代码片原创 2021-03-26 22:04:05 · 101 阅读 · 0 评论 -
2021-03-23 0x03差分和前缀和
A [HNOI2003]激光炸弹 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 B IncDec Sequence 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 C Tallest Cow 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 A Best Cow Fences 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 ...原创 2021-03-23 21:27:15 · 71 阅读 · 0 评论 -
2021-01-16 0x013 0x014
0x013 基本数据结构-链表与邻接表 1.题意: 2.题解: 3.ac代码: #include<bits/stdc++.h> #include<iostream> using namespace std; #define ll long long const int N=1e6+10; int n,a; set<pair<int,int>> s;//第一个存数字,第二个存序号 int main(){ cin>>n; cin>>a原创 2021-02-26 18:22:43 · 114 阅读 · 0 评论 -
2021-01-28 0x12 基本数据结构-队列
A 1.题意: 2.题解: 3.ac代码: #include<bits/stdc++.h> #include<iostream> using namespace std; #define ll long long const int N=1e6+10; map<int,int> mp; queue<int> q[1005]; int main(){ int n; int t,k=0; char s[N]; int a; int ot; while(原创 2021-02-26 15:00:33 · 84 阅读 · 0 评论 -
2021-01-14 0x11 基本数据结构-栈
1.题意: 2.题解: 3.ac代码: 在这里插入代码片 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 ...原创 2021-02-25 14:13:06 · 66 阅读 · 0 评论 -
2021-01-30 0x02 基本算法-枚举、模拟、递推
1.题意: 2.题解: 3.ac代码: 在这里插入代码片 1.题意: 2.题解: 3.ac代码: 在这里插入代码片 1.题意: 2.题解: 3.ac代码: 在这里插入代码片原创 2021-02-07 21:40:50 · 121 阅读 · 0 评论 -
2021-02-03 0x01 基本算法-位运算
一.a^b%c 1.题意: 2.题解: 3.ac代码: #include<bits/stdc++.h> using namespace std; typedef long long ll; ll quick_pow(ll a,ll b,ll c) { ll ans = 1; while(b) { if(b&1) ans = (ans * a) % c; a = (a*a) % c; b >>原创 2021-02-03 23:28:18 · 86 阅读 · 0 评论