DSA-BFS
Kim is a winner of “Croatia star”. She is looking for a job in a music shop. Salesman is asked her some question about music. Kim is a expert in a music and she know answer on all question. Salesman is decided to ask a person does Kim popularity. Salesman is asked N people about Kim. Salesman want to the people say yes and he just ask a people which like Kim. That people are K and other which don’t like Kim is V. Help Salesman to ask just people which like Kim Verson.
InputIn the first line there are A, [] and N (0<A, B, N <50).A and B are dimension of wield. N is number of people. In the next A lines there are B char which is say where is K and where is V.
OutputOutput the number how many people like Kim and number the sum of fastest ways to ask all people with K [b](D is start position).
Input:
Output:
4 4 3
D..V
K...
....
K...Output:
2 4Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.