2488: 2020NOI-入门组02 - 荆轲刺嬴政

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:8 Solved:5

Description



Sample Input Copy

5 4 0 0 5
. 1 T 1
. . . 2
. 1 . .
S . . .
1 . . .

Sample Output Copy

3 0 0