Computer Science, asked by abhijitpatra30, 3 months ago

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 hitesh21hv
0

Answer:

I don't understand this question

Answered by suhas0013055
0

Answer:

pls Mark it as brainliest

Similar questions