codeforces 555C - Case of Chocolate
#include
#define N 1000100
using namespace std;
struct Seg{
int a[N<<2],lt[N<<2];
inline void push_down(int k){
a[k<<1]=max(a[k<<1],lt[k]);
a[k<<1|1]=max(a[k<<1|1],lt[k]);
lt[k<<1]=max(lt[k<<1
原创
2017-10-06 15:41:19 ·
389 阅读 ·
0 评论