Problem3295--【Div3】二维数组练习 - Santa Claus 1

3295: 【Div3】二维数组练习 - Santa Claus 1

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description






Sample Input Copy

5 5 3 4
#####
#...#
#.@.#
#..@#
#####
LLLDRUU

Sample Output Copy

2 3 1

HINT

Source/Category