beats 97.60%
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def countTime(self, t: str) -> int:\n        mm = (6 if t[3] == \'?\' else 1) * (10 if t[4] == \'?\' else 1)\n        match [t[0],t[1]]:\n            case (\'?\',\'?\'):\n                return mm * 24\n            case (\'?\', (\'0\'|\'1\'|\'2\'|\'3\')):\n                return mm * 3\n            case (\'?\',_):\n                return mm * 2\n            case ((\'0\'|\'1\', \'?\')):\n                return mm * 10\n            case (_, \'?\'):\n                return mm * 4\n        return mm\n```
['Python3']