 score we can get.</div>
<div>If n=2,L=3,Word[1]=&rdquo;AB&rdquo;,Word[2]=&rdquo;BB&rdquo; then&nbsp;</div>
<div>Score[ABB] = 1 * ( 2 * 2 - 1 + 1 ) * Prime[1] * ( 3 * 2 - 2 + 1 ) * Prime[2],</div>
<div>Score[CBA] = 1,</div>
<div>Score[CAB] = 1 * ( 3 * 2 - 2 + 1 ) * Prime[1];</div>
<div>ZCC has found a BUG which can help him to input strings into the software as much as he can. And the score he gets in the end is the sum of the score he gets in each input.ZCC wants to know the score he will get in the e