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 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.