Preparando MOJI

Digits

1000ms 262144K

Description:

Input:

The first line contains a single integer $$$t$$$ ($$$1 \le t \le 32$$$) — the number of test cases.

Each test case contains $$$n$$$ lines. The $$$i$$$-th line contains an integer $$$a_i$$$ ($$$1 \le a_i \le 9$$$).

The sum of $$$n$$$ over all test cases doesn't exceed $$$155$$$.

Output:

For each test case, print one integer — the answer.

Sample Input:

3
2
1
4
7
1
2
3
5

Sample Output:

8
7
30

Informação

Codeforces

Provedor Codeforces

Código CF1812C

Tags

*special

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 10:38:26

Relacionados

Nada ainda