AND20211201
AND20211201
全部文章
分类
dfs(1)
总结(28)
数据结构(1)
未归档(1)
洛谷(1)
题解(113)
归档
标签
去牛客网
登录
/
注册
AND20211201的博客
TA的专栏
17篇文章
0人订阅
未解决
2篇文章
297人学习
数据结构
15篇文章
377人学习
全部文章
(共149篇)
比赛时间
#include<iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if(a < 11){ print...
2022-05-02
1
243
奶牛赛跑
#include<iostream> using namespace std; const int N = 2 * 1e6 + 10; int a[N], b[N]; int main() { int n, m; cin >> n >> m; ...
2022-04-29
0
255
见面与问候
1.两头牛一秒移动一单位长度,所以在两头牛均在移动时,它们所在单位奇偶性是一致的。这意味这两头牛一定不会在某个单位格中间相遇。 2.如果可以在中间相遇(这题不考虑),可以将运动的距离乘以二,这样就可以只枚举整点。 C++ #include<iostream> using namespac...
2022-04-29
1
370
信息中继
#include<iostream> using namespace std; const int N = 1010; int a[N], b[N], p[N], s[N]; int find(int x) { if(p[x] != x)p[x] = find(p[x]); ...
2022-04-27
0
343
重新排列奶牛
C++ #include<bits/stdc++.h> using namespace std; const int N = 1e6 + 10; int a[N], b[N], p[N], s[N]; int find(int x) { if(p[x] != x)p[x] = f...
2022-04-26
1
292
里程表
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
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页