编写要求:
公式在线网解答:
网友求助:
LL:=REF(L,1);
HH:=REF(H,1);
SQK:=L>HH;
XQK:=H<LL;
向上跳几元:IF(SQK=1,L-HH,DRAWNULL),COLORGREEN,CROSSDOT,LINETHICK3,NODRAW;
逃命跳空元:IF(XQK=1,H-LL,DRAWNULL),COLORYELLOW,CROSSDOT,LINETHICK3,NODRAW;
DRAWTEXT(SQK,L-0.02,'向上'),COLORGREEN;
DRAWTEXT(XQK,H+0.02,'逃命'),COLORYELLOW;
STICKLINE(SQK,L,HH,4*N,1),COLORGREEN;
STICKLINE(XQK,H,LL,4*N,2),COLORYELLOW;
解答如下:
N:=10;
LL:=REF(L,1);
HH:=REF(H,1);
SQK:=L>HH;
XQK:=H<LL;
向上跳几元:IF(SQK=1,L-HH,0),COLORGREEN,CROSSDOT,LINETHICK0;
逃命跳空元:IF(XQK=1,H-LL,0),COLORYELLOW,CROSSDOT,LINETHICK0;
DRAWTEXT(SQK,L-0.02,'向上'),COLORGREEN;
DRAWTEXT(XQK,H+0.02,'逃命'),COLORYELLOW;
STICKLINE(SQK,L,HH,4*N,1),COLORGREEN;
STICKLINE(XQK,H,LL,4*N,2),COLORYELLOW;