CF148C.Terse princess

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

«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 nn grooms, said «Oh...» exactly aa times and exclaimed «Wow!» exactly bb times. Your task is to output a sequence of nn integers t1,t2,...,tnt_{1},t_{2},...,t_{n} , where tit_{i} describes the fortune of ii -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,an,a and bb ( 1<=n<=100,0<=a,b<=15,n>a+b ), separated with single spaces.

输出格式

Output any sequence of integers t1,t2,...,tnt_{1},t_{2},...,t_{n} , where tit_{i} ( 1<=ti<=500001<=t_{i}<=50000 ) is the fortune of ii -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

说明/提示

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