Codeforces Round 105 (Div. 2)
C
Terse princess
Codeforces
1700
原题
← BD →
翻译中…

«Next please», — the princess called and cast an estimating glance at the next groom.

翻译中…

The princess intends to choose the most worthy groom, this is, the richest one. Whenever she sees a groom who is more rich than each of the previous ones, she says a measured «Oh...». Whenever the groom is richer than all previous ones added together, she exclaims «Wow!» (no «Oh...» in this case). At the sight of the first groom the princess stays calm and says nothing.

翻译中…

The fortune of each groom is described with an integer between 1 and 50000. You know that during the day the princess saw $*n*$ grooms, said «Oh...» exactly $*a*$ times and exclaimed «Wow!» exactly $*b*$ times. Your task is to output a sequence of $*n*$ integers $*t*_{1}, *t*_{2}, ..., *t*_{*n*}$, where $*t*_{*i*}$ describes the fortune of $*i*$-th groom. If several sequences are possible, output any of them. If no sequence exists that would satisfy all the requirements, output a single number -1.

翻译中…

Input

翻译中…

The only line of input data contains three integer numbers $*n*, *a*$ and $*b*$ ($1 ≤ *n* ≤ 100, 0 ≤ *a*, *b* ≤ 15, *n* > *a* + *b*$), separated with single spaces.

翻译中…

Output

翻译中…

Output any sequence of integers $*t*_{1}, *t*_{2}, ..., *t*_{*n*}$, where $*t*_{*i*}$ ($1 ≤ *t*_{*i*} ≤ 50000$) is the fortune of $*i*$-th groom, that satisfies the given constraints. If no sequence exists that would satisfy all the requirements, output a single number -1.

翻译中…

Note

翻译中…

Let's have a closer look at the answer for the first sample test.

翻译中…
  • The princess said «Oh...» (highlighted in bold): 5 1 3 6 16 35 46 4 200 99.
  • The princess exclaimed «Wow!» (highlighted in bold): 5 1 3 6 16 35 46 4 200 99.
翻译中…

样例

Input #1
10 2 3
Output #1
5 1 3 6 16 35 46 4 200 99
InputCopy OutputCopy
Input #2
5 0 0
Output #2
10 10 6 6 5
InputCopy OutputCopy
题目信息
题号
148C
时间限制
1 s
内存限制
256 MB
标签
构造
贪心

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。