Feedback Of February Challenge 2018

Hi Fellow Programmers,

The Feb long challenge has just concluded. We hope that you enjoyed participating in the contest. Please feel free to pitch in your views about anything that you would like to mention about the contest.

Regards,
CodeChef Admin

7 Likes

Thanks for posting quick editorial :slight_smile:

How come this solution to the question Chef and odd queries: https://www.codechef.com/viewsolution/17408003 that uses a bitset of total size 10^10 bits (i.e. 1250 MBs) passed, where normally memory limit is 256 MB or 512 MB in long challenge questions. Also, the memory limit is not mentioned at all in the problem! This solution solves the problem without any segment tree or sqrt decomposition but just using bitsets. I think this kind of solutions having O(N^2) memory are not supposed to pass for chef and odd queries. @admin @markysha

1 Like

codechef’s memory limit is 1.5gb

Very nice.Enjoyed it a lot!

No! It is unlimited. This should be fixed soon.

Another one (Mine)

https://www.codechef.com/viewsolution/17376783

Allocate M bitsets of size N, but still passes.

We have the issue in our mind. We are working on to fix it.

1 Like

One of the best long challenges I’ve ever taken. Well balanced and nice problems.

1 Like

The difficulty level was quite balanced and good. Finally a nice long contest after long.

3 Likes

I think codechef should start providing the test cases once the contest is finished. It will help us more in finding our mistakes.

4 Likes

plz provide official editorial … quite good contest!!

@admin contest was very good … enjoyed solving it.
but please provide test cases after the contest.

They are already out. Please check the forum.

@admin @vijju123

Check my soln https://www.codechef.com/viewsolution/17395501 for (Challenge) Biased Committee https://www.codechef.com/FEB18/problems/BIAS

I have been awarded ~20 pts for sinply printing what is given as input.
Indeed weak test cases.
Such an unoptimized soln got 20 pts and pass subtask 1 of Chef and odd queries awarded 10 pts.
Plz don.t allow this type of soln to take away 20 pts on challenge question. As it reduces the moral of other participants when they get to know this.

And they are trying hard to get 100 pts. Or not attempting just because they cannot think of procedure to solve Q.

On the other hand people are getting pts for simply printing input. And that too 20 pts.

This type of soln deserves less than 5 pts. So plz make sure from next time that score should be such that this does not happen again. Because this affects rating and ranking of many deserved ones.

There are many this type of soln.
https://www.codechef.com/viewsolution/17425539
https://www.codechef.com/viewsolution/17425340

P.S. Most soln with time ~.012 sec on c/c++. Have either done this or took average.

1 Like

Hi, this was discussed many times particularly in this thread: https://discuss.codechef.com/questions/491/will-codechef-provide-test-cases . Codechef does not provide test cases since it spoils the real fun. :slight_smile:

1 Like

can anyone tell how the bitset soln passd. Not only it has memory complexity N^2 but also time complexity of N^2. On the other hand i dont think testcases were very weak as my https://www.codechef.com/viewsolution/17342876 O(Nsqrt(N)log(sqrt(N))) algo failed. Or did i miss something?

3 Likes

Regarding the gradient of the contest , I feel the first 5 problems were good as per their difficulty level but 6th,8th,9th and 10th problems should have been a little harder than they were, especially the 9th problem which require only a greedy approach.

2 Likes

Hello Community!
I wanted to contribute to the community but since I don’t have enough karma points, I want you to upvote only if you like my unofficial editorial on PERMPAL :
Contest link:https://www.codechef.com/FEB18/problems/PERMPAL

My approach:
1.The answer will be -1 only when the count of any of 26 characters is odd and there exists more than one such character’s example : abbc, here we can see both ‘a’ and ‘c’ have odd count in the given string.
2.In any other case, we will always find a answer, that is pallindrome.
3.Based on above point, we will deal with two cases :
—(A)When only one character comes with odd count and rest other characters with even count.
—(B)When all the character in the given string are of even count.

Now the question comes How to solve this?

So it is much clear for case 3(A) that the odd count characters should be in the middle of string in order to make it pallindrome, eg abbba n(b)=3 i.e odd

Since the ordering of characters won’t matter in case of even count, we will print index one by one from vector<vector> v(26), I have used this for storing the index of each character(a-z) in the string.In the output I need to just print the even count characters index ,simultaneously from beginning and end.
Keep in mind that the odd count character should be in the middle.

If you give up, you can see my solution here:https://www.codechef.com/viewsolution/17309552

All suggestions are welcome!

Thanks Community,
Happy Coding!

1 Like

I asked @admin to look into your feedback.