기출 문제 / 삼성 2017 First Half Afternoon Problem 1

Autonomous Driving Car

An autonomous driving car of size 1×1 is placed on a road of size n×m.

The autonomous driving car moves according to the following rules: