spoj twends

easy dp problem.

Advertisements