func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     int arr[n];     for (int i = 0; i < n; i++) {       cin >> arr[i];     }     sort(arr, arr + n);     int runsum = 0;     int pen = 0;     int k = 0;     while (runsum <= 350 && ((runsum + arr[k]) <= 710) && k < n)       runsum += arr[k++];     if (runsum <= 350) {       cout << k <<   0  << endl;     } else {       runsum -= 350;       pen += runsum;       while ((runsum + arr[k]) <= 360 && k < n) {         runsum += arr[k++];         pen += runsum;       }       cout << k <<     << pen << endl;     }   }   