Atcoder FT robot解题报告
题目原文
A robot is put at the origin in a two-dimensional plane.Initially, the robot is facing in the positivex-axis direction.
This robot will be given an instruction sequence s.s consists of the following two kinds of letters, and will be executed in order from front to back.
F
: Move in the current direction by distance1.T
: Turn 90 degrees, either clockwise or counterclockwise.
The objective of the robot is to be at coordinates