Manthan, Codefest 18 (rated, Div. 1 + Div. 2)(A,B,C, D)

NoSuchKey