一行四个整数n,A,B,C(n≤100000,0≤A,B,C≤10000),其中n表示格子的数量。x[i]由如下方式生成:
for (int i = 1; i <= n; i++){
int tmp = ((long long)a * i * i + b * i + c) % 20000;
x[i] = tmp - 10000;
}
int tmp = ((long long)a * i * i + b * i + c) % 20000;
x[i] = tmp - 10000;
}