摘要:
uva 1615 高速公路(贪心,区间问题) 给定平面上n个点和一个值D,要求在x轴上选出尽量少的点,使得对于给定的每个点,都有一个选出的点离它的欧几里得距离不超过D。(n include include include using namespace std; const int maxn=1e5 阅读全文
摘要:
uva11491 奖品的价值(贪心) 给你一个n位的整数,请你删除其中的d个数字,使得整数尽可能大。1 include using namespace std; const int maxn=1e5+5; int n, m, lens, tail, dis; char s[maxn], ans[ma 阅读全文
摘要:
uva1610 聚会游戏(细节处理) 输入一个n(n include include using namespace std; const int maxn=1005; int n; string a[maxn], s1, s2; void getstr(int l, int r, int ord, 阅读全文