C++ solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n public:\n  int minCostSetTime(int startAt, int moveCost, int pushCost,\n                     int targetSeconds) {\n    int ans = INT_MAX;\n    int mins = targetSeconds > 5999 ? 99 : targetSeconds / 60;\n    int secs = targetSeconds - mins * 60;\n\n    auto getCost = [&](int mins, int secs) -> int {\n      int cost = 0;\n      char curr = \'0\' + startAt;\n      for (const char c : to_string(mins * 100 + secs))\n        if (c == curr) {\n          cost += pushCost;\n        } else {\n          cost += moveCost + pushCost;\n          curr = c;\n        }\n      return cost;\n    };\n\n    while (secs < 100) {\n      ans = min(ans, getCost(mins, secs));\n      --mins;\n      secs += 60;\n    }\n\n    return ans;\n  }\n};\n\n```
['C++']