Codeforces Round #503 (by SIS, Div. 2) A 模拟 B搜索 C思维
A#include#pragmacomment(linker,“/STACK:1024000000,1024000000”)#defineINF0x3f3f3f3f#defineLLlonglongusingnamespacestd;constintAX=2e3+66;inta[AX];intmain(){intn,h,a,b,k;intx,y,f1,f2;scanf("%d%d%d%d%d",&