AND20211201
AND20211201
全部文章
题解
dfs(1)
总结(28)
数据结构(1)
未归档(1)
洛谷(1)
归档
标签
去牛客网
登录
/
注册
AND20211201的博客
全部文章
/ 题解
(共113篇)
里程表
C++ #include<bits/stdc++.h> using namespace std; int main() { long long n, m; cin >> n >> m; vector<long long>a; ...
2022-04-25
1
242
找到牛
只有在后腿前面的前腿才能匹配上 C++ ">#include<string> using namespace std; int main() { string s; cin >> s; int n = 0, ans = 0; for(int i = 0; i ...
2022-04-25
1
266
CF - B. Consecutive Points Segment
最大值和最小值之间相差m,而一共有n个数,即使把最大值和其他的数统统 - 1, 还相差m - 1个数,如果m - 1 > n那么就不可能形成连续数段 #include<bits/stdc++.h> using namespace std; const int N = 2e5 + ...
2022-04-24
1
330
CF - A. String Building
2, 3可以组成大于等于2和3的一切数,所以除了1以外的情况不需要考虑 #include<bits/stdc++.h> using namespace std; const int N = 1e5 + 10; bool t[N]; int main() { int t; cin &...
2022-04-24
0
327
CF - G. Fall Down
#include<bits/stdc++.h> using namespace std; const int N = 1e2 + 10; typedef pair<int, int> PII; #define x first #define y second int n, m...
2022-04-22
1
309
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
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页