Python || Sharing my Simple Solution
\nclass Solution:\n    def minCostSetTime(self, startAt: int, moveCost: int, pushCost: int, targetSeconds: int) -> int:\n        def cost(s):\n            ans =
```\nclass Solution:\n    def minCostSetTime(self, startAt: int, moveCost: int, pushCost: int, targetSeconds: int) -> int:\n        def cost(s):\n            ans = 0\n            prev_pos = startAt\n            for i in range(len(s)):\n                if prev_pos != int(s[i]):\n                    prev_pos = int(s[i])\n                    ans += moveCost\n                ans += pushCost\n            return ans\n        secs = targetSeconds % 60\n        mins = (targetSeconds - secs) // 60\n        c = sys.maxsize\n        if mins < 100:\n            c = min(c, cost(str(mins * 100 + secs)))\n        if mins > 0 and secs < 40:\n            c = min(c, cost(str((mins - 1) * 100 + (secs + 60))))\n        return c\n```
['Python']