AtCoder Beginner Contest 278 G.Generalized Subtraction Game(思维题/博弈 multi-sg)
题目交互题,初始给出n(nusingnamespacestd;constintN=2e3+10;typedefpairP;intn,l,r,a,b,sg[N],f;boolvis[N];setnow;voidask(intx,inty){cout=r)now.insert(P(x,x+L-1));if(R>=r)now.insert(P(y-R+1,y));ask(x+L,y-R);f=0;ret