CF 225C - Barcode

Codeforces 225C: Barcode

CF 225C - Barcode

Rating: 1700
Tags: dp, matrices
Solve time: 5m 19s
Verified: no

Solution