序号 | 标题 | 作者 | 发表时间 | 费用 | 订购数 | 操作 |
---|
ftiasch is a studentwho is popular among girls so she always gets a lot of luv letters. Althoughshe is attracting, she is such a person of low profile that she will never tellothers how many luv letters she has received.
1tthinking, the friendof ftiasch, wants to know the number of luv letters. 1tthinking have onlylearned that every time ftiasch receives a luv letter, she will write a stringcontaining a subsequence "luvletter" in his diary. For instance,ftiasch could get 0, 1 or 2 luv letters if there is a string"alduddvdletterflusvletetedr" in his diary. Now give you somediaries, 1tthinking is desired to figure out the largest possible number of luvletters ftiasch could get.
A subsequence is a sequence that can be derived fromanother sequence by deleting some elements without changing the order of theremaining elements.