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
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
Get step-by-step solutions from verified subject matter experts
