z-clock
You are given current time as a number of seconds sec. Suppose that the time is shown on a clock with hands for hours and minutes. You should find out the next time, (represented as seconds with 3 decimals), when the hour and minute hands will overlap.
InputStandard input will contain sec (0 <= sec <= 43199) that represents the current time in seconds.
OutputOn standard ouput you should print out the time in seconds when hands will overlap next time. The time should be printed with 3 decimals.
Input:
Output:
0Output:
3927.273Input:
Output:
43199Output:
43200.000Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.