4 AABB
3 In this sample input, there are four possible orders in which the votes may be counted: * The votes are counted in the order of voter $1 \to 2 \to 3 \to 4$. * The votes are counted in the order of voter $2 \to 1 \to 3 \to 4$. * The votes are counted in the order of voter $2 \to 3 \to 1 \to 4$. * The votes are counted in the order of voter $2 \to 3 \to 4 \to 1$. The sequences of preliminary results for these will be `AAAC`, `AAAC`, `ACAC`, `ACBC` from top to bottom, so there are three possible sequences of preliminary results.
4 AAAA
1 No matter the order of counting, the sequence of preliminary results will be `AAAA`.
10 BBBAAABBAA
5
172 AABAAAAAABBABAABBBBAABBAAABBABBABABABBAAABAAABAABAABBBBABBBABBABBBBBBBBAAABAAABAAABABBBAABAAAABABBABBABBBBBABAABAABBBABABBAAAABAABABBBABAAAABBBBABBBABBBABAABBBAAAABAAABAAAB
24
{
"problem": {
"name": "Election",
"description": {
"content": "This year's AtCoder mayoral election has two candidates, A and B, and $N$ voters have cast their votes. The voters are assigned numbers from $1$ to $N$, and voter $i$ $(1 \\leq i \\leq N)$ voted for can",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc172_c"
},
"statements": [
{
"statement_type": "Markdown",
"content": "This year's AtCoder mayoral election has two candidates, A and B, and $N$ voters have cast their votes. The voters are assigned numbers from $1$ to $N$, and voter $i$ $(1 \\leq i \\leq N)$ voted for can...",
"is_translate": false,
"language": "English"
}
]
}