Elimination RoundE】【DP】Intellectual Inquiry 長度為m字串後新增n位最大本質不同子串個數
After getting kicked out of her reporting job for not knowing the alphabet, Bessie has decided to attend school at the Fillet and Eggs Eater Academy. She has been making good progress with her studies and now knows the firstkEnglish letters.
Each morning, Bessie travels to school along a sidewalk consisting ofm
Consider the resulting strings(|s| = m + n) consisting of letters labeled on tiles in order from home to school. For any sequence of indicesp1 < p2 < ... < pqwe can define subsequence of the stringsas stringsp1sp2...spq. Two subsequences are considered to be distinct if they differ as strings. Bessie wants to label the remaining part of the sidewalk such that the number ofdistinct subsequences
Note that empty subsequence also counts.