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

Dragon Curve

The fractal shape known as the Dragon Curve on a coordinate plane follows these rules:

In the coordinate plane given in the problem, the x-value increases as you move from top to bottom starting from 0, and the y-value increases as you move from left to right starting from 0.