**输入格式** Multiple test cases The first line will contain 2 integers n, d(2<=n<=100000,1<=d=<=10000000) The second line n integers(值不超过2^31-1), representing the suquence. by NightTide @ 2021-12-30 16:48:14