Warning: session_start(): open(/tmp/sess_af8c3876b2dd785cd446fa2c8bc78342, O_RDWR) failed: No space left on device (28) in /data/wiki/inc/init.php on line 239
Warning: session_start(): Failed to read session data: files (path: ) in /data/wiki/inc/init.php on line 239
Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/auth.php on line 430
Writing /data/wiki/data/cache/d/de2edb2fcb553ea79b79c722a4e13dbc.captchaip failed
Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103
#include
using namespace std;
const int T=100009;
const int maxn=200009;
const int SIZE=500;
const int B=34000;
int n,m,Tn;
int a[maxn];
int b[maxn];
bitsetf[B+9],now;
int c[T];
int nn;
struct Section{
int l,r,id;
bool operator < (const Section &rhs) const{
if(l/SIZE==rhs.l/SIZE)return rp[i].l)insert(a[--L]);
while(R>p[i].r)delt(a[R--]);
while(L