摘要: 这题可以说是spoj GSSI的拓展题了,它求的是给定区间的最大连续和的两个端点下标。http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4146AC Code #include <cstdio>#include <cstring>#include <algorithm>using namespace std;#define lson l,m,rt<<1#define rson m+1, 阅读全文