Kaguya's class of
To help Ishigami, Kaguya will change the answer key to maximize the lowest possible score that any student gets.
Compute the maximum possible lowest score that is attainable.
Constraints
In tests worth 1 mark,
Input Specification
The first line contains two integers,
Each of the next T
and F
, representing the answers that were submitted
in the order that the questions were given.
Output Specification
Output the maximum possible lowest score.
Sample Input 1
Copy
5 4
TFTF
TFFF
TFTT
TFFT
TFTF
Sample Output 1
Copy
2
Sample Input 2
Copy
3 5
TFTFT
TFTFT
TFTFT
Sample Output 2
Copy
5
Comments