#include <cstring> #include <iostream> #include <algorithm> #include <string> // using namespace std; const int MAXN = 200005; int a[MAXN],f[MAXN]; int main() { // ios::sync_with_stdio(false); // cin.tie(0); // cout.tie(0); int n, m; scanf("%d",&...