August Cook off Gukiz and Candies

I have an issue regarding AUG 2018 cook off .2nd question of this contest says that 1<= pi <= 1000000000 for each valid i. It means it should hold true for each value of i, 1<= i <=n. I used same thing, but got WA in contest. When I didn’t use this, it got accepted but after contest. This is true for 1<= i <=n according to question statement. I don’t why It got WA.

  1. My submission when I used that statement for 1<= i <=n : https://www.codechef.com/viewsolution/19793744

  2. My submission when I didn’t use this : https://www.codechef.com/viewsolution/19803776

For Example let consider the test case as:
1
3 1 4
999999999

Answer : By 1) 2999999997 (999999998 + 999999999 + 1000000000)
By 2) 3000000004 (999999999 + 1000000002 + 1000000003)

2nd answer should n’t get accepted as pi<=1000000000 and 1st should get accepted according to me. Please, correct me if am wrong. @admin @vijju123 @horsbug98

1 Like

The intention of setter was to convey that for given p_i in input, this constraint holds. Although I agree that same variable naming has caused this confusion and that the confusion is quite genuine, I dont think we can make contest unrated for it especially after ratings were updated. I will ask the @admin to direct more careful proof reading for future contests.

Apologies for not making the statement explicit. If your interpretation had been the one which we had intended, it would also have been part of the statement, and not just in the constraints. But we agree that this was somewhat ambiguous, and apologize for it. We will make sure that this is not repeated in the future.

Cheers,

CodeChef

Sir, A humble request to you.Kindly make contest unrated for me or update my ratings accordingly.This causes a great loss (drop of 139 ratings).@admin

Thanks,

Sir, A humble request to you.Kindly make contest unrated for me or update my ratings accordingly.This causes a great loss (drop of 139 ratings).@vijju123

Thanks,

waiting for your action.@admin

waiting for your action.@vijju123 @admin

@admin @vijju

@admin @vijju123

I will discuss it with @admin , although my current stance is negative. Lets see what she thinks of the issue in light of your arguments :slight_smile:

Hi, we’ll make the contest unrated for you.

1 Like