Manthan, Codefest 16 C. Spy Syndrome 2(哈希+dp)

NoSuchKey