// NOTE: it is recommended to use this even if you don't understand the following code. #include #include #include #include #define MAXN 100000 int D, K, N, i; int P[MAXN]; int main() { // uncomment the two following lines if you want to read/write from files // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); assert(2 == scanf("%d%d", &N, &K)); for (i = 0; i < N; ++i) assert(1 == scanf("%d", &P[i])); D = 0; // INSERT YOUR CODE HERE printf("%d\n", D); return 0; }