Inputs:
current hour
: from 0 to 23 (inclusive)delta of hours
:[current hour]
+[delta of hours]
= withing the range ofInteger
Output:
delta of days
: the value which shows difference in days between day ofcurrent hour
and day of sum[current hour]
+[delta of hours]
Scoring
- Answers will be scored in bytes with fewer bytes being better.
Examples:
[current hour]
= 23;[delta of hours]
= -23;delta of days
= 0[current hour]
= 23;[delta of hours]
= 1;delta of days
= 1[current hour]
= 23;[delta of hours]
= 24;delta of days
= 1[current hour]
= 23;[delta of hours]
= 25;delta of days
= 2[current hour]
= 23;[delta of hours]
= -24;delta of days
= -1[current hour]
= 23;[delta of hours]
= -47;delta of days
= -1