XXX has an array of length n. XXX wants to know that, for a given w, what is the sum of the distinct elements’ number in all substrings of length w. F ......
// luogu-judger-enable-o2
include <cstdio>
//include <iostream>
include <cstring>
include <algorithm>
include <cmath>
define R(a,b,c) for(regist ......