#P8437. 伟大的神
伟大的神
Background
The great god (hereinafter referred to as TU) likes strings. On the -th day after getting AK in IOI, the great god TU ordered little s to find a string that he likes.
Otherwise, little s would be beaten up for years. (Even if he finds it, he will still be beaten up.)
Problem Description
The great god TU believes that a string in which the counts of all characters that appear are equal belongs to god, and he calls it a "god string".
For a string , if one of its substrings is a god string, then that substring is called a "god substring".
The great god TU believes that the string he likes can only be made up of l and r, and it must also satisfy the following conditions:
- The length of the string is .
- The length of the longest god substring in the string is .
- The number of consecutive identical characters in the string cannot exceed .
Weak god little s cannot find the string that god TU likes. Now he has come to you. Can you help him?
Input Format
One line with three integers: .
It is guaranteed that the input is even.
Output Format
Output any string that god TU likes.
It is guaranteed that such a string can be found.
10 6 3
lllrrlrlll
Hint
This problem uses bundled tests.
For of the testdata, it is guaranteed that , .
It is guaranteed that such a string can be found.
Subtask 1: For of the testdata, it is guaranteed that .
Subtask 2: For another of the testdata, it is guaranteed that .
Subtask 3: For another of the testdata, it is guaranteed that .
Subtask 4: No special properties.
Translated by ChatGPT 5