C++ | Easy if-else | Short
\nPlease upvote if you like!\n\nclass Solution {\npublic:\n    int countTime(string time) {\n        int res = 1;\n        if(time[4] == \'?\') res *= 10;\n    
```\nPlease upvote if you like!\n\nclass Solution {\npublic:\n    int countTime(string time) {\n        int res = 1;\n        if(time[4] == \'?\') res *= 10;\n        if(time[3] == \'?\') res *= 6;\n        if(time[1] ==\'?\' && time[0] == \'?\') res*=24;\n        if(time[1] ==\'?\' && time[0] != \'?\'){\n            if(time[0] == \'0\' || time[0] == \'1\') res*=10;\n            else res*=4;\n        }\n        if(time[1] !=\'?\' && time[0] == \'?\'){\n            if(time[1] < \'4\') res*=3;\n            else res*=2;\n        }\n        return res;\n    }\n};\n```
['C']