#pragma GCC optimize("Ofast") #pragma GCC target("avx2") char*mmap(); #define rd(v) int v=0;{int _c;while(_c=*rp++-48,_c>=0)v=v*10+_c;} #define HASH_BITS 20 #define HASH_MASK ((1<w){ b=0; l=i+1; }else{ a[i]=ai; b+=ai; while(b>w){ hash_remove(a[l]+1); b-=a[l]; ++l; } if(!hash_add(ai+1)){ while(a[l]!=ai){ hash_remove(a[l]+1); b-=a[l]; ++l; } b-=ai; ++l; } if(z