Page **1** of **1**

### Re: 12751 - An Interesting Game

Posted: **Thu Oct 02, 2014 4:17 pm**

by **moudud99**

Is 2nd sample output correct?I think it is wrong.

there n=6,x=3 and k=1.

so the ans will sum of 1,2,4,5,6 which is 18.

in sample output it is 15.

please tell me if I am wrong.

### Re: 12751 - An Interesting Game

Posted: **Thu Oct 02, 2014 8:47 pm**

by **brianfry713**

n=6,k=3 and x=1.

so the ans will sum of 4,5,6 which is 15.

### Re: 12751 - An Interesting Game

Posted: **Fri Oct 03, 2014 6:41 am**

by **moudud99**

so what actually that line means?

At first move, Jodu will select K consecutive marbles (X, X + 1, X + 2, . . . , X + K ? 1)

starting from X and will remove them

and what about the 1st output?

### Re: 12751 - An Interesting Game

Posted: **Sat Oct 04, 2014 12:57 am**

by **brianfry713**

The problem statement and sample I/O are correct. I can't explain that line any better than it already is written.

n=5,k=2 and x=2.

so the ans will sum of 1,4,5 which is 10.

### Re: 12751 - An Interesting Game

Posted: **Sun Oct 05, 2014 9:22 am**

by **moudud99**

so the statement said k numbers starting from x.

sorry I understood wrong...

anyway I got AC as you told..