Editorial needed for Problem B of HonorCode

I need to say but the editorial to this problems is bad. If the authors are seeing this, please add some explaination to the isok() function.
Since the editorial doesn’t offer a good explanation, I have to ask if someone else can explain to me the editorial’s code, your own approach or this solution. Any one of them would work.
Thanks :).

1 Like