[c++ & Python] O(1) time and space
\n Describe your approach to solving the problem. \n\n# Complexity\n- Time complexity: O(1)\n Add your time complexity here, e.g. O(n) \n\n- Space complexity: O
\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity: $$O(1)$$\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: $$O(1)$$\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# C++\n```\nclass Solution {\npublic:\n    int findDelayedArrivalTime(int at, int dt) {\n        int arrive = at + dt;\n        return arrive >= 24 ? arrive - 24 : arrive;\n    }\n};\n```\n\n# Python / Python 3\n```\nclass Solution:\n    def findDelayedArrivalTime(self, at: int, dt: int) -> int:\n        arrive = at + dt\n        if arrive >= 24:\n            return arrive - 24\n        return arrive\n```
['Math', 'Python', 'C++', 'Python3']