题库练习 Terse princess
← 上一题 下一题 →

A8446 | Terse princess

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

«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.

输入格式

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 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.

输入输出样例

输入 #1
10 2 3
输出 #1
5 1 3 6 16 35 46 4 200 99
输入 #2
5 0 0
输出 #2
10 10 6 6 5
C++ 编辑器
输入
输出