Constraints:
1) 1 sn && /s/ < 1000
II) Acceptable inputs are only "+", "<" and ">".
Input:
The first line of the input contains an integer n denoting the total number o
The next line of input contains the placement of thorns "+" and jumpers ">
Output:
Print a single integer denoting the number of times the Panda will be punis
Sample Input 1:
5
*<>>>
Sample Output 1:
1.
Explanation:
Here in the above sample," + < > > >", 1 is an obstacle, whereas 2, 3, 4, and 5 ar
facing to each other and Panda will definitely fall down and be punished. Hence the output is 1
Sample Input 2:
6
* * *
Sample Output 1:
0
Answers
Answered by
0
Answer:
I don't understand this question
Answered by
0
Answer:
pls Mark it as brainliest
Similar questions
Science,
1 month ago
Math,
1 month ago
Science,
1 month ago
Math,
3 months ago
Computer Science,
3 months ago
India Languages,
9 months ago