# Major issue with CHEFPART!

**URL:** <https://discuss.codechef.com/t/major-issue-with-chefpart/76398>\
**Category:** Uncategorized\
**Created:** [August 29, 2020, 9:02pm UTC](https://discuss.codechef.com/t/major-issue-with-chefpart/76398 "2020-08-29T21:02:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![atomicenergy](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@atomicenergy](https://discuss.codechef.com/u/atomicenergy)\
**Post date:** [August 29, 2020, 9:02pm UTC](https://discuss.codechef.com/t/major-issue-with-chefpart/76398/1 "2020-08-29T21:02:01Z")

</div>

On CHEFPART during today’s lunchtime, the only person to get AC was tourist (gennady.korotkevich).  
I believe this wasn’t because he was the only one to get the right answer though. It was because he was the only one to mess up in the same way as the judges.

First of all, what should the answer be if n=1. In this case, it is impossible to separate into two non-empty sequences, so every sequence is good, meaning chef does not have to do any swaps. The answer should be 0.

In cases where n=1, and a\_0 is a power of 2, gennady.korotkevich’s code outputs -1.  
Furthermore, I added a line to abort() if this output ever comes up and resubmitted, and got a run time error. That means that tourist’s code actually should have gotten WA.

Am I misunderstanding the problem here? I spent a while on this problem and gave up after failing to get AC.

---

<div class="post-metadata">

**Author:** ![i\_code78](https://discuss.codechef.com/user_avatar/discuss.codechef.com/i_code78/32/20207_2.png) [@i\_code78](https://discuss.codechef.com/u/i_code78)\
**Post date:** [August 30, 2020, 3:36pm UTC](https://discuss.codechef.com/t/major-issue-with-chefpart/76398/2 "2020-08-30T15:36:28Z")

</div>

Tagging @rishup_nitdgp ,author of this problem.  
Can you give some insight?  
Can you tell if problem is wrong or testcases are wrong ?

---

<div class="post-metadata">

**Author:** ![admin](https://discuss.codechef.com/user_avatar/discuss.codechef.com/admin/32/212587_2.png) [@admin](https://discuss.codechef.com/u/admin)\
**Post date:** [August 31, 2020, 7:20am UTC](https://discuss.codechef.com/t/major-issue-with-chefpart/76398/3 "2020-08-31T07:20:20Z")

</div>

Hi, Thanks for reporting this. This was indeed missed in the official solutions. This has been fixed now, all non-AC solutions rejudged, and we will recalculate the ratings for the 2 users who have been affected by this. Apologies for the mistake.
