• + 1 comment

    Hi Dheeraj,

    --

    First, thanks for your answer!

    --

    Second, it's clear that outputs related to your sample included in problem statement:

    1
    6
    

    and your sample above:

    1
    10
    

    are NOT consistent each other.

    --

    In fact, you affirm that for given input:

    1
    6
    

    Game consists of following turns:

    first turn (by Louise):     6 -> 4 -> 2
    second turn (by Richard):   2 -> 1 -> RICHARD WINS!
    

    But you affirm that for given input:

    1
    10
    

    Game consists of following turns:

    first turn (by Louise):     10 -> 8 -> 2            (?!)
    second turn (by Richard):   2 -> 1 -> RICHARD WINS! (?!)
    

    --

    First turn in second sample makes no sense, right?

    According to given input:

    1
    10
    

    Game should consist of following turns:

    first turn (by Louise):     10 -> 8 -> 4
    second turn (by Richard):   4 -> 2
    third turn (by Louise):     2 -> 1 -> LOUISE WINS!
    

    --

    This said, how is it possible that 3 input values between 2^62 and 2^63 give different output values? (for details, see my first comment)

    Thanks!

    Sergio