Editorial for CBFEAST in December 18 long contest.

The problem link is: https://www.codechef.com/DEC18A/problems/CBFEAST

Upvote this comment if you feel OP needs to seriously change the title.

12 Likes

Editorial for CBFEAST here and here.