摘要: Description战争期间,双方互打信息战,我军准备去敌方一条战斗主线上的信息塔窃取他们的信息。敌方的信息塔排成了一条线,每个信息塔都会同时向两侧(两端的塔只向一侧)严格比自己高的最近的信息塔传送信息。现在时间紧迫,我们只能去其中一个信息塔,为了最高效的窃取敌人的信息,我们必须选择其中信息接收量最大的塔。现在请你去执行这个窃取任务。Input第1行,一个整数N(1#include using namespace std;typedef struct{ int data; int num; int index;}node;node tower[2000001];int main(){ int 阅读全文
posted @ 2014-01-14 20:17 AHU_树 阅读(218) 评论(0) 推荐(0) 编辑
摘要: DescriptionA color reduction is a mapping from a set of discrete colors to a smaller one. The solution to this problem requires that you perform just such a mapping in a standard twenty-four bit RGB color space. The input consists of a target set of sixteen RGB color values, and a collection of arbi 阅读全文
posted @ 2014-01-14 19:21 AHU_树 阅读(352) 评论(0) 推荐(0) 编辑