Editorial for WC '18 Contest 2 J2 - This Message will Self-Destruct
                Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
        Submitting an official solution before solving the problem yourself is a bannable offence.
Let  be the numerical value (
) of the first character of 
. We can obtain this value by subtracting the ASCII value of 
0 from the ASCII value of that character. Similarly, let  and 
 be the numerical values of the third and fourth characters, respectively. Then, 
 corresponds to minutes, 
 to tens of seconds, and 
 to single seconds. The total number of seconds therefore comes out to 
.
Comments