12405 - Scarecrow


Difficulty : easy

Solution Description :

Ad hoc problem

input n and string str

read each character
---if the character is '.' then set next character (position) by '#' and increment the counter variable

print count