http://codeforces.com/problemset/problem/847/E
E. Packmentime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA game field is a strip of1 × nsquare cells. ...