LEFT:向左转
RIGHT:向右转
BACK:向后转
FORWORD n:向前走n(1≤n≤100)个单位
现在给你一个指令序列,求机器人最终的位置。
2
4
LEFT
FORWORD 2
BACK
FORWORD 1
2
RIGHT
FORWORD 1
-1 0
1 0
Anything about this OnlineJudge, Please Contact Administrator. Click add QQ
OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap
Copyright 2016 ACM算法攻关部