Editorial for New Year's '18 P1 - Happy New Year!
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.
Author:
We can convert and
into seconds and add them to
. The number of seconds the task takes is
and the number of minutes
, and the number of hours is
. Then, subtract that from 12:00:00 to get the answer. Note that the hours output should be between
and
.
Time Complexity:
Comments