AND20211201
AND20211201
全部文章
分类
dfs(1)
总结(28)
数据结构(1)
未归档(1)
洛谷(1)
题解(113)
归档
标签
去牛客网
登录
/
注册
AND20211201的博客
TA的专栏
17篇文章
0人订阅
未解决
2篇文章
297人学习
数据结构
15篇文章
377人学习
全部文章
(共149篇)
CF - D. Colorful Stamp
找规律 #include<bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int main() { int t; cin >> t; while (t --) { int n; cin &g...
2022-04-22
0
334
CF - F. Eating Candies
#include<cstdio> #include<cstring> #include<string> #include<iostream> #include<vector> #include<cmath> #include&l...
2022-04-22
0
465
滑雪场设计
由题意可知, 最后所有的山的高度都在一个相差17的区间之内,所以维持一个大小为17的区间,从小到大遍历即可 #include<bits/stdc++.h> using namespace std; const int N = 10000; int a[N]; map<int,int...
2022-04-21
0
350
CF2A Winner
考的是map的应用,与求首个最大值结合在一起 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int, int> PII; const int N = 1e3 + ...
2022-04-21
0
285
CF1B Spreadsheets
//26进制与10进制之间的相互转换 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int, int> PII; const int N = 1e6 + 10; ...
2022-04-20
0
327
滑动窗口
来自专栏
#include<iostream> using namespace std; const int N = 1e6 + 10; int a[N], q[N]; int hh = 0, tt = -1; int main() { int n, k; cin >>...
2022-04-19
1
230
单调栈
来自专栏
#include<iostream> using namespace std; const int N = 1e5 + 10; int stk[N], tt; int main(...
2022-04-19
1
188
模拟队列
来自专栏
队列的特性是先进先出 int q[N], hh = 0, tt = -1;//在队尾插入元素,在队头弹出元素 // 队头弹出元素 hh ++; //判断是否为空 if(hh <= tt)no empty else empty //插入操作 q[++ tt...
2022-04-19
1
223
记录保存
#include<bits/stdc++.h> using namespace std; map<string,int> a; int main() { int n, mx = 0; cin >>n; for(int i = 1; i &l...
2022-04-19
1
206
奶牛选美
#include<bits/stdc++.h> using namespace std; const int N = 55; typedef pair<int, int> PII; char s[N][N]; bool t[N][N]; int dx[4] = {-1, 0,...
2022-04-18
0
309
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页