DSA-war
Dario is in a war.He need get all D-things('D') and go round the Vipus('V').Dario need go round Vipus in circle breadth 1 cm.Help Dario!
InputIn the first line there are A,B and [
](0<A,B,C<100).A and B are dimension of a field.C is number of D-things.Output Output the number of step how many Dario need do to get all D-things(Dario is on P).
Input:
[c]3 3 1
P..
...
V.D
Output:
[c]3 3 1
P..
...
V.D
Output:
4Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.