洛谷 4823 [TJOI2013]拯救小矮人

题目链接-> 噔楞 题解: 贪心 按个高+臂长排序。 个矮臂长的先走,个高臂短的后走 #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #define N 2007 using namespace std; int f[N], n, flag, now, ans; struct node{
相关文章
相关标签/搜索