Code:
#include
#define N 50001
#define ll long long
#define lson now<>1;
if(r>mid) t[now]=t[now]*t[rson];
}
void build(int l,int r,int now)
{
if(l==r)
{
t[now][0][0]=t[no
Code:
#include
#define N 50001
#define ll long long
#define lson now<>1;
if(r>mid) t[now]=t[now]*t[rson];
}
void build(int l,int r,int now)
{
if(l==r)
{
t[now][0][0]=t[no