// NOTE: it is recommended to use this even if you don't understand the following code. #include #include #include #include using namespace std; int main() { // uncomment the two following lines if you want to read/write from files // ifstream cin("input.txt"); // ofstream cout("output.txt"); int N, K; cin >> N >> K; vector P(N); for (int i = 0; i < N; ++i) cin >> P[i]; int D = 0; // INSERT YOUR CODE HERE cout << D << endl; return 0; }