func_code_string: #include <bits/stdc++.h>   using namespace std;   struct ASDF {     ASDF& operator,(int& a) {       scanf( %d , &a);       return *this;     }     ASDF& operator,(long int& a) {       scanf( %ld , &a);       return *this;     }     ASDF& operator,(long long int& a) {       scanf( %lld , &a);       return *this;     }     ASDF& operator,(char& c) {       scanf( %c , &c);       return *this;     }     ASDF& operator,(double& d) {       scanf( %lf , &d);       return *this;     }     template <typename T>     ASDF& operator,(T& a) {       cin >> a;       return *this;     }   } asdf;   template <typename T>   ostream& operator<<(ostream& output, vector<T>& v) {     output <<  [  ;     if (int(v.size())) {       output << v[0];     }     for (int i = 1; i < int(v.size()); i++) {       output <<  ,   << v[i];     }     output <<   ] ;     return output;   }   template <typename T1, typename T2>   ostream& operator<<(ostream& output, pair<T1, T2>& p) {     output <<  (   << p.first <<  ,   << p.second <<   ) ;     return output;   }   int main() {     int n, k;     vector<int> v;     cin >> n >> k;     v.resize(n);     for (int i = 0; i < n; i++) cin >> v[i];     long long sum = 0;     for (int i = 0; i < n; i++) {       if (k > 0 && v[i] < 0) {         v[i] = -v[i];         k--;       }     }     if (k & 1) {       sort(v.begin(), v.end());       v[0] = -v[0];     }     for (int i = 0; i < n; i++) sum += v[i];     cout << sum << endl;   }   