摘要: 原题链接:http://codeforces.com/contest/572/problem/D题意给你个数组A和n,k,问你排列A后,下面的最小值是多少。题解先排个序,要填充像1,1+k,1+2k,1+3k....这样的序列,或像2,2+k,2+2k.......这样的序列,这些序列应该取排序数组... 阅读全文
posted @ 2015-08-23 23:20 好地方bug 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 原题链接:http://codeforces.com/contest/572/problem/B题意很迷,自行看题。题解看懂题就会做了代码#include#include#include#define MAX_N 100005using namespace std;int n,s;struct ex... 阅读全文
posted @ 2015-08-23 23:11 好地方bug 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/contest/572/problem/A题意就给你两个数组,问你能不能从A数组中取出k个,B数组中取出m个,使得这k个都大于这m个。题解就模拟代码#include#include#include#define MAX_N 100005using... 阅读全文
posted @ 2015-08-23 23:09 好地方bug 阅读(150) 评论(0) 推荐(0) 编辑