ビルの飾り付け 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
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
原典:JOI 2019/2020 春季トレーニング合宿 ビルの飾り付け 4 (Building 4)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet