codeforce 789 C. Functions again (最大字段和)

NoSuchKey