Hide
Problem C
The Weight Of Words
You are asked to write an AI that can play this game!
Input
The input consists of a single line with two integers $l$ ($0 < l \le 40$) and $w$ ($0 < w \le 1000$).
Output
Output a string of length $l$ with weight $w$ consisting of lowercase English letters if it exists, otherwise output impossible. If more than one string exists, you may output any of them.
Sample Input 1 | Sample Output 1 |
---|---|
11 131 |
programming |
Sample Input 2 | Sample Output 2 |
---|---|
7 96 |
contest |
Sample Input 3 | Sample Output 3 |
---|---|
26 677 |
impossible |