【CodeForces - 1060D E - Social Circles】题目链接
思路:将左边最大和右边最大的合并,再放入重新考虑,知道没有人为止,因为可以有多个圆桌,所以可以简化为下列代码。
#include
#include
#include
#include
#include
#include
#include
#include
#include
//#include
推荐阅读
- 题库-CF|【Codeforces Round 263 (Div 2)C】【贪心 哈弗曼思维】Appleman and Toastman 每个非1size子树延展为2子树的最大权
- Codeforces|Codeforces Round #643 (Div. 2) B.Young Explorers
- ZOJ-3447---Doraemon's Number Game (贪心+大数)
- CodeForces 567A Lineland Mail 贪心
- codeforces|Codeforces Round #643 (Div. 2) D. Game With Array (思维,贪心)
- Codeforces Round #643 (Div. 2) B. Young Explorers 题解(贪心)
- Codeforces Round #503 (by SIS, Div. 2) C. Elections(贪心)
- 贪心|001:特殊密码锁(贪心)
- 贪心|Codeforces D. Solve The Maze (bfs & 贪心) (Round #648 Div.2)