正文
增加 8 行删除 8 行
23 行未改动2425262728293031323334353637383913 行未改动535455565758596061626364656667686970719 行未改动818283848586878889909192939495969798174 行未改动全部展开23 行未改动namespace Fread {const int BUFFER_SIZE = 1 << 23;char buffer[BUFFER_SIZE + 7];char *pstart = buffer, *pend = buffer;inline char getchar(){if (pstart < pend) return *pstart++;pstart = buffer;pend = buffer + fread(buffer, 1, BUFFER_SIZE, stdin);return pstart == pend ? EOF : *pstart++;}inline int read(){int sign = 1, ans = 0;char ch = getchar();while (ch < '0' || ch > '9'){13 行未改动namespace Fwrite {const int BUFFER_SIZE = 1 << 22, N = 15 + 7;char buffer[BUFFER_SIZE + 7], temp[N];char *p = buffer;inline void flush(){fwrite(buffer, p - buffer, 1, stdout);p = buffer;}inline void putchar(char ch){if (p - buffer >= BUFFER_SIZE) flush();*p++ = ch;}inline void write(ll x){int top = 0;do {temp[top++] = x % 10 + '0';9 行未改动ll sum;ll lmax;ll rmax;ll max;Info_tag(){}Info_tag(ll sum_, ll lmax_, ll rmax_, ll max_){sum = sum_;lmax = lmax_;rmax = rmax_;max = max_;}inline void clear(){sum = lmax = rmax = max = 0;}} Info;174 行未改动全部展开23 行未改动2425262728293031323334353637383913 行未改动535455565758596061626364656667686970719 行未改动818283848586878889909192939495969798174 行未改动全部展开23 行未改动namespace Fread {const int BUFFER_SIZE = 1 << 23;char buffer[BUFFER_SIZE + 7];char *pstart = buffer, *pend = buffer;inline char getchar(){if (pstart < pend) return *pstart++;pstart = buffer;pend = buffer + fread(buffer, 1, BUFFER_SIZE, stdin);return pstart == pend ? EOF : *pstart++;}inline int read(){int sign = 1, ans = 0;char ch = getchar();while (ch < '0' || ch > '9'){13 行未改动namespace Fwrite {const int BUFFER_SIZE = 1 << 22, N = 15 + 7;char buffer[BUFFER_SIZE + 7], temp[N];char *p = buffer;inline void flush(){fwrite(buffer, p - buffer, 1, stdout);p = buffer;}inline void putchar(char ch){if (p - buffer >= BUFFER_SIZE) flush();*p++ = ch;}inline void write(ll x){int top = 0;do {temp[top++] = x % 10 + '0';9 行未改动ll sum;ll lmax;ll rmax;ll max;Info_tag(){}Info_tag(ll sum_, ll lmax_, ll rmax_, ll max_){sum = sum_;lmax = lmax_;rmax = rmax_;max = max_;}inline void clear(){sum = lmax = rmax = max = 0;}} Info;174 行未改动全部展开