There is a paper strip divided into nn blank grids. For each i(1≤i<n), grid i and i+1 are considered adjacent.
Alice and Bob are going to play a game on the strip. They take turns to make move. In one move the pla
The game ends when one of the pla
Given n and the side starting the game, find out the final score when both pla
The first line contains an integer T(1≤T≤105) - the number of test cases.
The first line of each test case contains an integer n(1≤n≤109) and a string s(s∈Alice,Bob) - the number of grids and the starting pla
4
3 Alice
3 Bob
19 Alice
23 Bob
1
2
8
10