#include using namespace std; #define ll long long struct thue { ll c, t, p; }; struct node { ll nt; vector ds; }; ll nghichthe = 0; ll bbs(vector &list) { ll count = 0; for(ll i=0;i list[j+1]) { swap(list[j], list[j+1]); count++; sw = true; } } if(!sw) break; } return count; } int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); ll n, k; cin >> n >> k; vector a(n); for(ll i=0;i> a[i]; unordered_map> cnt; ll ans = 0; for(ll i=0;i