#include #include #include using namespace std; typedef long long LL; struct X{ int index; LL n; int val; }; bool CompN(X &l, X &r){ return l.n>Q; int i; vector N(Q); for (i=0;i>N[i].n; N[i].index=i; N[i].val=0; } sort(N.begin(),N.end(),CompN); vector T1; T1.push_back(0); T1.push_back(0); T1.push_back(0); T1.push_back(1); LL t=4; for (i=0;i