func_code_string: #include <bits/stdc++.h>   using namespace std;   int dp[100010];   int main() {     int val90, val1440, n;     cin >> n;     dp[0] = 0;     unsigned int ar[n + 10];     for (int i = 1; i <= n; i++) {       cin >> ar[i];     }     val1440 = val90 = 1;     for (int i = 1; i <= n; i++) {       while (ar[i] - ar[val1440] >= 1440) {         val1440++;       }       while (ar[i] - ar[val90] >= 90) {         val90++;       }       dp[i] = min(dp[i - 1] + 20, dp[val90 - 1] + 50);       dp[i] = min(dp[i], dp[val1440 - 1] + 120);       int ans = dp[i] - dp[i - 1];       printf( %d n , ans);     }     return 0;   }   