#include "stdio.h" int main() { char str[10001]; gets(str); int i = 0; char dir = 0;//direction int dis = 0;//distance int x = 0; int y = 0; while(str[i]) { if(dir==0) { if(str[i]=='W'||str[i]=='A'||str[i] == 'S'||str[i] == 'D') dir = str[i]; else while(str[i]!=';')i+...