Readability / Conciseness balance
Java\njava\npublic int countTime(String time) {\n        char hoursFirst = time.charAt(0), hoursSecond = time.charAt(1), minutesFirst = time.charAt(3), minutesS
##### Java\n```java\npublic int countTime(String time) {\n        char hoursFirst = time.charAt(0), hoursSecond = time.charAt(1), minutesFirst = time.charAt(3), minutesSecond = time.charAt(4);\n        int minutesChoices = (minutesFirst == \'?\' ? 6 : 1) * (minutesSecond == \'?\' ? 10 : 1), hoursChoices = 1;\n\n        if (hoursFirst == \'?\')\n            hoursChoices = hoursSecond == \'?\' ? 24 : (hoursSecond - \'0\' >= 4) ? 2 : 3;\n        else if (hoursSecond == \'?\')\n            hoursChoices = (hoursFirst - \'0\' == 2) ? 4 : 10;\n\n        return hoursChoices * minutesChoices;\n    }\n```\n\n##### C++\n```c++\npublic:\n    int countTime(string time) {\n        char hoursFirst = time[0], hoursSecond = time[1], minutesFirst = time[3], minutesSecond = time[4];\n        int minutesChoices = (minutesFirst == \'?\' ? 6 : 1) * (minutesSecond == \'?\' ? 10 : 1), hoursChoices = 1;\n\n        if (hoursFirst == \'?\')\n            hoursChoices = hoursSecond == \'?\' ? 24 : (hoursSecond - \'0\' >= 4) ? 2 : 3;\n        else if (hoursSecond == \'?\')\n            hoursChoices = (hoursFirst - \'0\' == 2) ? 4 : 10;\n\n        return hoursChoices * minutesChoices;\n    }\n```
['C', 'Java']