
暴力
Knight.Panda
ᕕ(˵•̀෴•́˵)ᕗ上分吗
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
F. Berland Beauty 暴力 dfs and similar sortings tree minmax
LINK 题意: 给出一棵树n个顶点,给出n-1边,然后告诉你m组数据-两个点之间的最小值,要你给出合法的n-1条边的可能取值,如果不存在输出-1 考察:dfs and similar sortings tree 暴力 优先考虑min比较大的边 题目3s(我2.6sQAQ,赛后刚AC就被hackQAQ) Examples inputCopy 4 1 2 3 2 3 4 2 1 2 5...原创 2020-02-07 23:21:32 · 264 阅读 · 0 评论 -
// 暴力啊 ~C. Anadi and Domino Codeforces Round #588 (Div. 2)
CF LINK DBQ 我丢人 #include<bits/stdc++.h> using namespace std; int mp[10][10]; int main() { int n,m; scanf("%d%d",&n,&m); for(int i=1;i<=m;i++) { int x,y;scanf("%d%d",&x,&...原创 2019-09-25 16:52:02 · 167 阅读 · 0 评论 -
D. Marcin and Training Camp Codeforces Round #588 (Div. 2)
CodeForce Examples Input Copy 4 3 2 3 6 2 8 5 10 Output Copy 15 Input Copy 3 1 2 3 1 2 3 Output Copy 0 Input Copy 1 0 1 Output Copy 0 Note In the first sample test, it’s optimal to send the first, th...原创 2019-09-26 16:20:44 · 246 阅读 · 0 评论