摘要:
http://poj.org/problem?id=3069 Description Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of h 阅读全文
摘要:
https://vjudge.net/problem/POJ-3617 问题描述 给定长度为N的字符串S,要构造一个长度为N的字符串T,起初T是一个空串,随后反复进行下列任意操作: 1.从S头部删一个字符加到T尾部 2.从S尾部删一个字符加到T尾部 构造出字典序尽量小的T 思路: 贪心。 前面后面比 阅读全文