Chef and Pairs
Is it possible to solve with ternary search ?
Problem : CHEFPRAD
Thanks in Advance.
AtCoder Beginner G problems upsolving