摘要: http://codeforces.com/problemset/problem/231/C题意求一个序列中出现次数最多的数和它的次数,并且允许对这个序列中的数进行K次加1或不加分析:一开始看这题就想到是排序加二分,但是不知道怎么二分,哎还是太弱。。。看了下别人的题解是二分答案,就是出现的次数。View Code #include <iostream>#include <cstdio>#include <cstring>#include <algorithm>#define MOD 100057#define MAXN 100050using n 阅读全文
posted @ 2012-10-08 11:03 z.arbitrary 阅读(234) 评论(0) 推荐(0) 编辑