Codeforces Round #345 (Div. 2) D. Image Preview __ two pointers and pretreat
D.ImagePreviewtimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVasya'stelephonecontains n photos.Photonumber1iscurrentlyopenedonthephone.Itisallowedtomoveleft