• + 1 comment

    in the first solution given in the editorial ,I wante to ask the line" if (max(0,n/2-pr)+max(0,n/2-dr)==ob) da++;"

    should instead be if (max(0,n/2-pr)+max(0,n/2-dr)<=ob) da++;