Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <cstdio>#include <cstring>#include <iostream>#include <ctime>#include <cmath>#include <algorithm>//#include "temperature.h"#define maxn 200020#define ll long longusing namespace std;struct yqh{int type;int l,r;int x;int id;}a[maxn*2];bool cmp(yqh a,yqh b){return a.x<b.x;}int n,m,tot,opt,mx,T;struct tree{int l,r;ll num;}b[maxn*10];;