L
.
Given the sentence that L
s he took, as well as the maximum number of consecutive L
s taken, without taking another letter tile.
Input Specification
The input will consist of a single line, containing the sentence that was built. The sentence will only consist of uppercase letters and spaces and will be no longer than characters.
Output Specification
A single line, with two space separated integers. The first is the total number of L
tiles that were used, and the second is the maximum number of consecutive L
tiles.
Sample Input 1
HELLO WORLD
Sample Output 1
3 2
Sample Input 2
TOTAL L
Sample Output 2
2 2
Comments
I can't get it to count consecutive letters.
Your first step will be to get rid of the spaces. The following two lines of Python 3 code will do that for you:
Tip, if you are during it in Turing, of all forsaken languages, the max character limit per string is 256. You'll need to use some clever programming tricks to solve this.