Gadgets for dollars and pounds【CodeForces 609D】【二分答案+贪心】

NoSuchKey