序列长 n=5×105n=5 \times 10^5n=5×105
不要 #define int long long 会爆掉
#define int long long
是 a[x]+=y; 不是 a[x]=y;
a[x]+=y;
a[x]=y;