输出test行,每行一个整数,表示答案。
1 2 2 2 3 1
3
f提示 Test<=50 Pi<=10^5,1<=Q1<=10^9
Using your 蒙青创OJ universal account