시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 67 24 22 42.308%

문제

이 문제는 내용이 없다.

입력

첫 번째 줄에는 데이터 개수 P 입력받는다 (1 ≤ P ≤ 1000). 각각의 데이터는 여러줄로 이루어져 있다. 또 각각의 데이터는 독립적으로 처리되야 한다.

각각의 데이터의 첫 줄은 출력 가능한 ASCII 코드 93개 이상 포함되지 않는다.

두번째 줄은 다음 줄의 데이터의 개수를 나타내는 정수 N이 입력된다 (1 <= N <= 512). 3번째 줄에 있는 각각의 정수는 -X에서 X 사이에 있는 2번째 줄의 문자의 개수에서 1을 뺀 수이다.

출력

출력은 2번째 줄에서 입력받은 데이터의 문자열의 길이 N을 포함한다.

예제 입력 1

7
MAC
3
1 1 1
IW2C0NP3OS 1RLDFA
22
0 3 3 -3 7 -8 2 7 -4 3 8 7 4 1 1 -4 5 2 5 -6 -3 -4
G.IETSNPRBU 
17
2 4 5 -6 -1 -3 -2 -4 -4 1 -1 5 -3 4 1 -2 4
PIBN MRDSYEO
16
-4 4 -1 4 5 3 -5 4 -3 -3 -2 -5 -5 -3 1 3
D^[email protected]"W*B&#]4!NcF$'lj%(d6XG5fi<Hxz7)2Lt~=8aQuvh}r_m+C9eI`-.>EwYyngZRsJKpqO{[\U|MPS,;T?031/A
93
-1 11 44 39 -31 -44 10 5 24 14 1 -33 42 28 -34 7 -37 24 14 3 -7 18 4 19 37 4 20 2 41 -42 18 15 -3 10 7 12 -11 -41 14 8 31 -26 37 -19 -17 -9 -16 15 31 14 29 -22 1 -24 20 -30 6 1 16 -29 31 -30 6 17 -43 -10 7 7 4 -22 10 -2 15 13 14 2 6 -17 34 -27 28 29 -28 2 33 -13 -15 6 -31 24 41 29 26
I
1
0
I
13
0 0 0 0 0 0 0 0 0 0 0 0 0

예제 출력 1

ACM
ICPC 2013 WORLD FINALS
IN ST. PETERSBURG
SPONSORED BY IBM
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwx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