"I want to ask a question" - Ask them all here!

Ask these questions here (I will upgrade them into independent thread if approved) till you get 3 karma to ask your own questions. We dont downvote questions at all until they are serious violations or really repetitive questions.

That actually is a complicated code XD. You can mail me requests to add comments to my code, in case I fail to see it here.

My solution essentially tries to speed up the brute force task. Bucket is made of 3 things- buckxor (xor of bucket), xors (a sort of carry over. If element i is updated from x to y, then whats the effect of it over xor of future buckets? The “original” or “prefix-xor” becomes (original^x^y). [The x removes contribution of x in original, and then we xor y]).

The map is like: mp[i]=number of sub arrays with xor i. Rest of code is how we can perform queries using these.

Yeah okay , from which problems should i start with to improve my programming skills so as to solve problems like these say easy-medium , I can solve pretty much first 3 to 4 in long challenges after that it just becomes tough
TY in advanced :smiley:

Its not a medium. I believe this problem also went to “Easy” section. You can start from there. Once you get confident, proceed to Medium section :slight_smile:

Thanks so much! I fixed my code to work now.

In the future, what are some ways to find out what the testcases are, when I get WA?

Also, how does one get Karma?

@himadri_erza

I ran into the same problem, and I posed the question in my answer to this thread. My hypothesis is that the test cases were formatted incorrectly, meaning our use of BufferedReaders and going line by line caused an NZEC. I hope we can figure this out.

SIGBRT error can be easily googled. It means you are allocating too much memory/ have crossed the memory limit. You cannot declare arrays of size {10}^{9}.

Suggest resources for learning C++ for Competitive coding. I know C and Java.

Please use search feature of the forum or google.

Reported. Thank you. :slight_smile:

You are welcome. :slight_smile:

@bitthal04 Do the following

  1. Go to your profile, click edit

  2. Go to professional and then add your school name in “Where do you study”

If you will not find your school name there, then click on “Other” then another option come “Enter new institution name:” here you will add your school name. Then admin will check and add your school.

Hope this answer is helpful.

@codex0196 I have already done that but neither I am alloted junior ranking not I am able to see myself in Schools Ranklist that’s why I m curious if I would get laddus or not

You are not allotted junior ranking because your school is not in the database. Once admin will add your school(if you did the following steps I have mentioned above), your junior ranking will be shown and laddus will be awarded.

Reported to @admin , final decision rests on her hands.

Please mail me or codechef the relevant screenshot and additional details.

1 Like

I am unable to get what you are trying to say. Can you elaborate please :slight_smile:

I think the ranklist was updating- it refreshes and shows accurate rank every 1-3min.

1 Like

If you click on the ? sign on the upper right corner of the text editor while writing an answer or a question (not comment), it will take you to a Japanese health website. Should I add a picture?

I get you @ayan_nitd.
Yes in the top corner of text-editor

Thanks for finding out from admins, it just needed to refresh.
(I knew it was too good to be true!)

Yes, please. A picture will help me better in describing the bug to @admin :slight_smile: