摘要:
A Simple Problem with Integers每次将区间向下更新,或是用之前的方法,统计当前节点到父节点处的覆盖数目。#include #include using namespace std;const int MAXN = 100005;typedef long long int64;int d[MAXN];class SegNode {public: int L, R; int64 c, sum; int64 get_c() { return c * (R - L + 1); } void log(const char *info) { ... 阅读全文
posted @ 2013-09-03 23:06
litstrong
阅读(149)
评论(0)
推荐(0)