Timer
Задачу добавил: smike
Успешно сдано решений: 36
"Timer"
"Timer" is an alarm clock that gives alarm signal after a set period.
When the "timer" will give a signal?
Input data (input.txt).
The current time is wrote as HH:MM:SS in the 1st line of file.(HH - from 00 to 23,
MM and SS - from 00 to 59).
Time interval is wrote as H:M:S in the second line of file (H, M and S - from 0 to 109).
If H=0 (or H=0 and M=0), they must be skipped.
Sample:
01:01:01
48:0:0
Output data (output.txt).
Your program must write time to file as HH:MM:SS, when signal will be activated.
If signal will not be activated today, then your program must write to file
count of days, before signal will be activated. For Example: 01:01:01+2 days
Sample:
01:01:01+2 days