【Codeforces Round #614(div2)】D-Aroma's Search (贪心)

NoSuchKey