← 返回 amazon 的题目列表Count Idle Robots
类型:online_judge
Given the location of n robots, return the number of idle robots. A robot is said to be idle if it has robots located above, below, left, and right of it.
Example
Input
[(1, 1), (0, 1), (2, 1), (1, 0), (1, 2)]