Looking for PatternsComputer Science Level 5
We define the score of a string to be the length of the longest substring that contains only the characters 'a', 'b', or 'c'. For example, the word "candle" has a score of 2 (from the substring "ca").
Let S be the sum of the scores of all the strings in this file. What are the last three digits of S?
Click here to open the file.