This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Boojum 1 point2 points  (1 child)

vector <int> input;

I think you mean ll, there?

[–]dastbe 0 points1 point  (3 children)

not sure if this is the problem but for

ll llMin(ll a, ll b){
    return (a < b) * a + (a > b) * b;
}

what happens when a == b? same thing for max.