import sys instruct=sys.stdin.readline().split(";") D=["W","A","S","D"] first=[0,0] for x in instruct:#相当重要,需要考虑空指令情况,否则执行命令发生上溢,报错! if x.strip()!="" and x[0] in D and x[1:].isdigit() and 0<int(x[1:])<100 : if x[0]=="W": fir...