Skip to content

ビルの飾り付け 4 (Building 4)

Unrated
日本語

Language

Contribute a translation
Time limit
1500 ms
Memory limit
512 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

ビルの飾り付け 4 (Building 4):公式日本語問題文 1ページ

ビルの飾り付け 4 (Building 4):公式日本語問題文 2ページ

ビルの飾り付け 4 (Building 4):公式日本語問題文 3ページ

Examples

Sample input 1
3
2 5 4 9 15 11
6 7 6 8 12 14
Sample output 1
AABABB
Sample input 2
2
1 4 10 20
3 5 8 13
Sample output 2
BBAA
Sample input 3
2
3 4 5 6
10 9 8 7
Sample output 3
-1
Sample input 4
6
25 18 40 37 29 95 41 53 39 69 61 90
14 18 22 28 18 30 32 32 63 58 71 78
Sample output 4
BABBABAABABA

Notes

Tags

No tags yet

Source