Question: using C++ lang We have weather records at AtCoder Town for some consecutive three days. A string of length 3,S, represents the records - if

using C++ lang
using C++ lang We have weather records at AtCoder Town for some

We have weather records at AtCoder Town for some consecutive three days. A string of length 3,S, represents the records - if the i-th character is s, it means it was sunny on the i-th day; if that character is R, it means it was rainy on that day. Find the maximum number of consecutive rainy days in this period. Input is given from Standard Input in the following format: Print the maximum number of consecutive rainy days in the period

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!