Atcoder FT robot解决方案
发布时间
阅读量:
阅读量
Atcoder FT robot解题报告
题目原文
A robot is put at the origin in a two-dimensional plane.Initially, the robot is facing in the positive x -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(x ,y) after all the instructions are executed.Determine whether this objective is achievable.
Cons
全部评论 (0)
还没有任何评论哟~
