摘要: https://qoj.ac/contest/1794/problem/9313 #include<bits/stdc++.h> #define x first #define y second using namespace std; typedef long long ll; typedef p 阅读全文
posted @ 2024-09-19 14:04 昊天djh 阅读(9) 评论(0) 推荐(0) 编辑
摘要: https://atcoder.jp/contests/abc368/tasks/abc368_f #include<bits/stdc++.h> #define x first #define y second using namespace std; typedef long long ll; 阅读全文
posted @ 2024-08-28 20:37 昊天djh 阅读(10) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/contest/88527/C #include<bits/stdc++.h> #define x first #define y second using namespace std; typedef pair<int,int> pii; t 阅读全文
posted @ 2024-08-15 11:21 昊天djh 阅读(13) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1881/problem/F 不难发现一件事情,我们这里最后的答案所在的点是 1 和 3 号点。 我们有没有发现一个性质:就是这两个点都是红点间的路径上的,而且最后的答案就是最长的红点间的距离的长度除以二上取整。 那么,我们怎么找到最长的 阅读全文
posted @ 2024-08-13 12:13 昊天djh 阅读(9) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1933/problem/E #include<bits/stdc++.h> #define x first #define y second using namespace std; typedef long long ll; type 阅读全文
posted @ 2024-07-30 16:59 昊天djh 阅读(6) 评论(0) 推荐(0) 编辑