上一页 1 ··· 16 17 18 19 20
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6601 #include <bits/stdc++.h> #define int long long using namespace std; const int maxn=1e5+5; int n,m,a[max 阅读全文
posted @ 2019-08-01 15:45 Hazelxcf 阅读(59) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P2774 在一个有 m×n 个方格的棋盘中,每个方格中有一个正整数。 现要从方格中取数,使任意2个数所在方格没有公共边,且取出的数的总和最大。试设计一个满足要求的取数算法。 输入格式: 文件第1行有2个正整数 m 和 n,分别表示棋 阅读全文
posted @ 2019-08-01 11:03 Hazelxcf 阅读(108) 评论(0) 推荐(0)
摘要: 搭配飞行员 飞行大队有若干个来自各地的驾驶员,专门驾驶一种型号的飞机,这种飞机每架有两个驾驶员,需一个正驾驶员和一个副驾驶员。由于种种原因,例如相互配合的问题,有些驾驶员不能在同一架飞机上飞行,问如何搭配驾驶员才能使出航的飞机最多。 因为驾驶工作分工严格,两个正驾驶员或两个副驾驶员都不能同机飞行。 阅读全文
posted @ 2019-08-01 11:01 Hazelxcf 阅读(104) 评论(0) 推荐(0)
摘要: 最小费用流这是一道模板题。给定一个图,每条边... 阅读全文
posted @ 2019-08-01 11:00 Hazelxcf 阅读(172) 评论(0) 推荐(0)
摘要: 最大流这是一道模板题。给定 n 个点,m 条... 阅读全文
posted @ 2019-08-01 10:57 Hazelxcf 阅读(131) 评论(0) 推荐(0)
摘要: 传送门主席树#include #define... 阅读全文
posted @ 2019-07-29 11:32 Hazelxcf 阅读(87) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P3376 #include<bits/stdc++.h> #define int long long const int INF = 0x3f3f3f3f; const int maxn = 3e5+10; using namesp 阅读全文
posted @ 2019-07-26 15:54 Hazelxcf 阅读(137) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/acdreamers/article/details/16902023 阅读全文
posted @ 2019-07-25 20:39 Hazelxcf 阅读(73) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20