#abc174f. [abc174_f]Range Set Query

[abc174_f]Range Set Query

nn 个数 a1,a2ana_1,a_2\dots a_n。有 qq 个询问 l,rl,r,求从 llrr 有多少个不同的元素。