Codeforces Round #345 (Div. 2) D. Image Preview 暴力 二分
D.ImagePreview题目连接:http://www.codeforces.com/contest/651/problem/DDescriptionVasya'stelephonecontainsnphotos.Photonumber1iscurrentlyopenedonthephone.Itisallowedtomoveleftandrighttotheadjacentphotobysw