地图上有n个排成一列的区域每个区域都有一个数字正数表示正能量比负能量大反之亦然。现在你可以对任何一个连续的区域清零使之能量变为0你希望所有区域中正能量的区域更多请问最多能得到多少正能量区域。用c++实现个代码
#include
using namespace std;
int main()
{
int n;
cin >> n;
vector
原文地址: https://www.cveoy.top/t/topic/bZV1 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#include
using namespace std;
int main()
{
int n;
cin >> n;
vector
原文地址: https://www.cveoy.top/t/topic/bZV1 著作权归作者所有。请勿转载和采集!