传送门
呵呵
——代码
1 #include <cstdio> 2 #include <iostream> 3 #define N 1000010 4 #define LL long long 5 #define max(x, y) ((x) > (y) ? (x) : (y)) 6 7 int n, t, a[N], s[N]; 8 LL ans, b[N], sum[N]; 9 10 inline LL read() 11 18 19 int main() 20 30 t = 0; 31 for(i = n; i >= 0; i) 32 36 for(i = 1; i <= n; i++) ans = max(ans, sum[i]); 37 printf("%lld\n", ans); 38 }View Code
上一篇:[POJ2912]Rochambeau(并查集)
下一篇:[CODEVS1917] 深海机器人问题(最小费用最大流)
单调栈









