#3256. aab aba baa
0
aab aba baa
aab aba baa
题目描述
在长度为 且包含 个 与 个 的字符串中,找出按字典序排列第 个的字符串。
输入格式
Input is given from Standard Input in the following format:
输出格式
Print the answer.
2 2 4
baab
30 30 118264581564861424
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
提示
, where is the number of strings of length containing occurrences of and occurrences of .
All values in input are integers.Here are the strings containing two s and two s in the lexicographical order: , , , , , and .
The fourth string, , should be printed.
may not fit into a -bit integer type.
标签: AtCoder|abc202D
来源
AtCoder|abc202D