Codeforces Round #263 (Div. 1) C. Appleman and a Sheet of Paper
题目地址:http://codeforces.com/contest/461/problem/C题目大意:见原题。算法分析:启发式暴力,每次把短的纸带折到长的纸带中,在全局记一个rev标记。注意细节。Code:#include#include#defineN100000usingnamespacestd;boolrev;intn,q,beg=1,end,typ,p,l,r,bit[N+10];in