시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB39627925872.881%

문제

Read in a letter and a number. The number indicates how big the letter triangle should be. The number indicating the size of the triangle will have a range from 0 to 250 (i.e., num>=0 and num<=250).

The letters must wrap around from Z to A. If you start with Z and have to print 5 levels, you must wrap around and start with A after the Z level is complete.

입력

The first number indicates the number of data sets to follow. Each data set will contain one letter and one number. All letter input will be uppercase.

출력

Print out the letter triangles in the order given. There is one blank line between each letter triangle.

예제 입력 1

3
5 A
3 Z
4 C

예제 출력 1

A
BB
CCC
DDDD
EEEEE

Z
AA
BBB

C
DD
EEE
FFFF