c++
int countTime(string s) {\n        int ans=0;\n        if(s[0]==s[1] and s[1]==\'?\'){\n            ans+=24;\n        }else if(s[0]==\'?\'){\n            if(s[1
int countTime(string s) {\n        int ans=0;\n        if(s[0]==s[1] and s[1]==\'?\'){\n            ans+=24;\n        }else if(s[0]==\'?\'){\n            if(s[1]<=\'3\')ans+=3;\n            else ans+=2;\n        }else if(s[1]==\'?\'){\n            if(s[0]==\'2\')ans+=4;\n            else ans+=10;\n        }\n        \n        int ans2=0;\n           if(s[3]==s[4] and s[3]==\'?\'){\n            ans2+=60;\n        }else if(s[3]==\'?\'){\n            ans2+=6;\n        }else if(s[4]==\'?\') ans2+=10;\n        if(ans2==0)ans2=1;\n        if(ans==0)ans=1;\n        \n        return ans*ans2;\n        \n        \n    }\n};
['C']