cfE. Ehab and a component choosing problem(贪心)

NoSuchKey