题意:给你一个数组,问你交换最多K个数以后,最大子串和为多少;解题思路:枚举这个数组最大字串和的起点和终点,然后优先队列交换这段里面的小数去换外面的大数,即可求出答案!解题代码:
1 // File Name: c.cpp 2 // Author: darkdream 3 // Created Ti...
分类:
其他好文 时间:
2014-04-29 21:44:33
阅读次数:
605
//// ViewController.m// mapdemo001//// Created by
apple on 14-4-28.// Copyright (c) 2014年 apple. All rights reserved.//#import
"ViewController.h"#...
分类:
移动开发 时间:
2014-04-29 17:02:06
阅读次数:
529
//// ViewController.m// mapdemo001//// Created by
apple on 14-4-28.// Copyright (c) 2014年 apple. All rights reserved.//#import
"ViewController.h"#...
分类:
移动开发 时间:
2014-04-29 15:05:05
阅读次数:
596
vector
使用练习:/***************************************** File Name: vector.cpp* Author:
sky0917* Created Time: 2014年04月27日 11:07:33*********************...
分类:
其他好文 时间:
2014-04-28 18:52:27
阅读次数:
1659
//// RootViewController.m// uitableview////
Created by liyang on 14-4-27.// Copyright (c) 2014年 liyang. All rights
reserved.//#import "RootViewCo...
分类:
移动开发 时间:
2014-04-28 06:09:42
阅读次数:
678
//// RootViewController.m// uitableview////
Created by liyang on 14-4-27.// Copyright (c) 2014年 liyang. All rights
reserved.//#import "RootViewCo...
分类:
移动开发 时间:
2014-04-28 03:28:08
阅读次数:
606
BMega Man’s MissionsInputStandard
InputOutputStandard OutputMega Man is off to save the world again. His objective
is to kill the Robots created by Dr...
分类:
其他好文 时间:
2014-04-28 00:38:46
阅读次数:
483