CF724D Dense Subsequence

题目描述

给定长度为n(1

输入格式

输入包括两行

输出格式

输出仅一行,为重排列后的选中字符串

说明/提示

In the first sample, one can choose the subsequence $ {3} $ and form a string "a". In the second sample, one can choose the subsequence $ {1,2,4} $ (symbols on this positions are 'a', 'b' and 'a') and rearrange the chosen symbols to form a string "aab".