func_code_string: #include <bits/stdc++.h>   using namespace std;   int dp[1000000], arr[1000000];   int main() {     int fi = 1, se = 1;     int n;     cin >> n;     int last = 20;     for (int i = 1; i <= n; i++) {       int x;       cin >> x;       arr[i] = x;       if (i == 1) {         cout << 20 <<   n ;         dp[i] = 20;         continue;       }       while (arr[fi] + 90 <= arr[i]) fi++;       while (arr[se] + 1440 <= arr[i]) se++;       dp[i] = 20 + dp[i - 1];       dp[i] = min(dp[i], dp[fi - 1] + 50);       dp[i] = min(dp[i], dp[se - 1] + 120);       cout << dp[i] - last <<   n ;       last = dp[i];     }     return 0;   }   