• + 2 comments

    I found something weird. If your program passed the problem, what is the output for this input?

    1

    4

    2 2 7 7

    • + 0 comments

      OK. I got it.

      For each operation, she can give 1, 2 or 5 pieces to all but one colleague.

    • + 0 comments

      2 i got