[LC-2437-E | Python3] A Plain Solution
Just write the process as requested.\n\nPython3 []\nclass Solution:\n    def countTime(self, time: str) -> int:\n        hh, mm = time[:2], time[3:]\n        if
Just write the process as requested.\n\n```Python3 []\nclass Solution:\n    def countTime(self, time: str) -> int:\n        hh, mm = time[:2], time[3:]\n        if hh[0] != \'?\' and hh[1] != \'?\':\n            h_cnt = 1\n        elif hh[0] == \'?\' and hh[1] != \'?\':\n            h_cnt = 2 if int(hh[1]) > 3 else 3\n        elif hh[0] != \'?\' and hh[1] == \'?\':\n            h_cnt = 10 if int(hh[0]) < 2 else 4\n        else:\n            h_cnt = 24\n\n        if mm[0] != \'?\' and mm[1] != \'?\':\n            m_cnt = 1\n        elif mm[0] == \'?\' and mm[1] != \'?\':\n            m_cnt = 6\n        elif mm[0] != \'?\' and mm[1] == \'?\':\n            m_cnt = 10\n        else:\n            m_cnt = 60\n\n        return h_cnt * m_cnt\n```
['Python3']