|시간 제한||메모리 제한||제출||정답||맞힌 사람||정답 비율|
|1 초||256 MB||103||32||28||35.443%|
On the first line, I will give two positive integers N and M.
N is the number of rows, and M is the number of columns.
Both integers are at most 100.
Each of the next N lines will describe each row of the tiles.
The tiles form a rectangle, remember?
Also, note that I will remove all marks on the tiles before Niko starts moving.
"#" means the mark is on that tile, and "." means the mark is not on that tile.
I guarantee that at least one tile has a mark.
Tell Niko exactly how they should move.
"U" for up, "D" for down, "L" for left, and "R" for right.
Niko is allowed to go out of the rectangle.
1 1 #