Home / Expert Answers / Computer Science / using-c-lang-we-have-weather-records-at-atcoder-town-for-some-consecutive-three-days-a-string-of-pa701

(Solved): using C++ lang We have weather records at AtCoder Town for some consecutive three days. A string of ...



using C++ lang

We have weather records at AtCoder Town for some consecutive three days. A string of length \( 3, S \), represents the record
We have weather records at AtCoder Town for some consecutive three days. A string of length , represents the records - if the -th character is , it means it was sunny on the -th day; if that character is , 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.


We have an Answer from Expert

View Expert Answer

Expert Answer


To solve this problem, you can loop through the characters of the input string S and keep track
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe