|
||||||||||
Hello XTCPCTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 8475 Accepted Submission(s): 2158 Problem Description You have a string of lowercase letters.You need to find as many sequence “xtCpc” as possible.But letters in the same position can only be used once。 Input The input file contains two lines. The first line is an integer $n$ show the length of string.($1 \leq n \leq 2 \times 10^5$) The second line is a string of length n consisting of lowercase letters and uppercase letters. Output The input file contains an integer show the maximum number of different subsequences found. Sample Input
Sample Output
Source | ||||||||||
|