#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;} int c[1<<18]; int t[18]; main(){ char*rp=mmap(0l,1l<<28,1,2,0,0ll); RD(n); for(int i=0;i