• + 2 comments

    Beautiful, but why then is input like that calculated as "NO":

    1
    6
    XXBBXX
    

    I suppose initially all ladybugs were happy (cause main condition is satisfied) in this case, am I wrong?