/
実行時間制限: 2 sec / メモリ制限: 1024 MiB
配点 : 200 点
問題文
ある学校に N 人の生徒がいて、それぞれ出席番号 A_i を持っています。
この学校では、出席番号が奇数の生徒は青木先生が、偶数の生徒は高橋先生が受け持ちます。
各生徒について、受け持ちが青木先生なら A 、高橋先生なら T として、 1 番目の生徒から順に並べた長さ N の文字列を出力してください。
制約
- 1 \leq N \leq 100
- 1 \leq A_i \leq 1000
- 入力はすべて整数
入力
入力は以下の形式で標準入力から与えられる。
N A_1 A_2 \ldots A_N
- 1 行目には、生徒の人数 N が与えられる。
- 2 行目には、各生徒の出席番号 A_1, A_2, \ldots, A_N がスペース区切りで与えられる。
出力
長さ N の文字列を 1 行で出力せよ。
入力例 1
4 1 2 3 4
出力例 1
ATAT
入力例 2
2 5 8
出力例 2
AT
入力例 3
3 7 4 9
出力例 3
ATA
入力例 4
1 999
出力例 4
A
入力例 5
7 703 170 739 340 487 50 937
出力例 5
ATATATA
Score : 200 pts
Problem Statement
There are N students in a school, each with an attendance number A_i.
In this school, students with odd attendance numbers are assigned to Aoki, and students with even attendance numbers are assigned to Takahashi.
For each student, write A if the assigned teacher is Aoki, and T if it is Takahashi. Output the resulting string of length N, listing the students in order starting from the 1st student.
Constraints
- 1 \leq N \leq 100
- 1 \leq A_i \leq 1000
- All input values are integers.
Input
The input is given from Standard Input in the following format:
N A_1 A_2 \ldots A_N
- The first line contains N, the number of students.
- The second line contains the attendance numbers A_1, A_2, \ldots, A_N of the students, separated by spaces.
Output
Print a string of length N on a single line.
Sample Input 1
4 1 2 3 4
Sample Output 1
ATAT
Sample Input 2
2 5 8
Sample Output 2
AT
Sample Input 3
3 7 4 9
Sample Output 3
ATA
Sample Input 4
1 999
Sample Output 4
A
Sample Input 5
7 703 170 739 340 487 50 937
Sample Output 5
ATATATA