C++ | Accepted ✅
\nclass Solution {\npublic:\n    int minCostSetTime(int startAt, int moveCost, int pushCost, int target) {\n        vector<string> v;\n        if(target < 100){
```\nclass Solution {\npublic:\n    int minCostSetTime(int startAt, int moveCost, int pushCost, int target) {\n        vector<string> v;\n        if(target < 100){\n            v.push_back(to_string(target));\n            int m = target / 60, sc = target % 60;\n            string ssc = "";\n            if(sc < 10){\n                ssc += \'0\';\n                ssc += to_string(sc);\n            }else{\n                ssc = to_string(sc);\n            }\n            v.push_back(to_string(m)+ssc);\n        }else{\n            int m = target / 60, sc = target % 60;\n            if(m < 100){\n                string ssc = "";\n                if(sc < 10){\n                    ssc += \'0\';\n                    ssc += to_string(sc);\n                }else{\n                    ssc = to_string(sc);\n                }\n                v.push_back(to_string(m)+ssc);\n            }\n            if(60 + sc < 100){\n                v.push_back(to_string(m-1)+ to_string(sc+60));\n            }\n        }\n        int res = INT_MAX;\n        for(int i=0; i<v.size(); i++){\n            int cost = 0, cur = startAt;\n            for(int j=0; j<v[i].size(); j++){\n                if(v[i][j]-\'0\' != cur){\n                    cost += moveCost;\n                    cur = v[i][j]-\'0\';\n                }\n                cost += pushCost;\n            }\n            res = min(res, cost);\n        }\n        return res;\n    }\n};\n```
['C', 'C++']