Time limit
1000 ms
Memory limit
262144 kB
Source
Codeforces Round #FF (Div. 2)
Tags
dp *1700
Editorial
Announcement (en) Statements (ru) Tutorial (en)
Descriptions:

DZY Loves Sequences

CodeForces - 447C