Codeforces-1106E:Lunar New Year and Red Envelopes(DP+优先队列)

NoSuchKey