Simple Python Code Beats 97%
\n\n# Code\n\nclass Solution:\n    def minimumMoney(self, tran: List[List[int]]) -> int:\n        s = sum([cost - re for cost, re in tran if cost > re])\n      
\n\n# Code\n```\nclass Solution:\n    def minimumMoney(self, tran: List[List[int]]) -> int:\n        s = sum([cost - re for cost, re in tran if cost > re])\n        return max([re + s if cost > re else s + cost for cost, re in tran])\n        \n```
['Python3']