You are given two integers between lets say 1 and 12,
and a integer between lets say 0 and 4 which is called
The challange is to decide if
one is inside or equal the range from
The range is restarting with 1 after 12 and vise versa.
For example, if
one = 2,
two = 11 and
range = 3, the result is
one is the the range
[8, 9, 10, 11, 12, 1, 2].
The input has to be 3 seperated integers, the order doesn't matter. Input via string with seperators possible. But the Input has to consist of numbers reading as '10' and not 'A' e.g.
one=7 two=6 range=0 result=false one=5 two=6 range=1 result=true one=8 two=11 range=3 result=true one=1 two=11 range=3 result=true one=2 two=10 range=3 result=false one=11 two=1 range=2 result=true one=6 two=1 range=4 result=false one=12 two=1 range=3 result=true
Shortest valid answer in bytes wins.