Python3 Easy Solution
```\nclass Solution:\n    def minCostSetTime(self, startAt: int, moveCost: int, pushCost: int, targetSeconds: int) -> int:\n        def calculatecost(digits, st
```\nclass Solution:\n    def minCostSetTime(self, startAt: int, moveCost: int, pushCost: int, targetSeconds: int) -> int:\n        def calculatecost(digits, start, mc,pc):\n            a= len(digits)\n            if(digits[0]==str(start)):\n                cost=pc\n            else:\n                cost= pc+mc\n            for i in range(1,a):\n                if(digits[i-1]==digits[i]):\n                    cost+=pc\n                else:\n                    cost += pc+mc    \n            return cost\n        minutes= targetSeconds//60\n        seconds=targetSeconds%60\n        cost=2**31-1\n        if(minutes<=99):\n            digits1= str(minutes*100+seconds)\n            cost=calculatecost(digits1, startAt, moveCost,pushCost)\n        if seconds<=39:\n            digits2=str((minutes-1)*100+seconds+60)\n            cost= min(cost,calculatecost(digits2, startAt, moveCost,pushCost))\n        return cost\n    \n            \n       \n            \n
[]