摘要:
我是如此水,学校如此水。。。有的时候错过就是错过了,再也不会回来。不要认输,因为你的对手可能很垃圾。视野要开阔附D水代码#include <iostream>#include <algorithm>using namespace std;struct rect{ long long area; int u, d, l, r; long long get(int y0, int y1, int x0, int x1) { u = max(y0, y1); d = min(y0, y1); l = min(x0, x1); r = max(x0, x1); area = ( 阅读全文
摘要:
查看不能折叠的水代码#include<stdio.h>struct{ int s, e; long long int s1, s2;} x[262144];void set(int s, int e, int t){ x[t].s = s; x[t].e = e; if (s != e) { set(s, (s + e) >> 1, (t << 1) + 1); set(((s + e) >> 1) + 1, e, (t << 1) + 2); }}long long int CQ(int s, int e, long lo... 阅读全文