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

Same mistake as the guy above. The number has OVER 100,000 DIGITS. int cannot store that big of a number!

ohk… Thanks for pointing it out… I misread the question… lol…

1 Like

Good that you got it :slight_smile:

thanks i got it

Karma system is simple- just like it happens in stack overflow. You need 3 karma to ask a question independently - else you need to ask it here. We will then go through your Q and see if its good enough to be an independent one, or if it has only 1 line answer. If it has only 1 line answer, the answer will be commented and case will be closed.

You gain karma when people upvote you, when thye find your answers useful. You can google “New karma system of codechef” and read their blog for more info :slight_smile:

Can someone explain what WA means for executing the codes for the contest. I won’t ask for help with the code. I just want to know how the competition works and how does the code execution take place for checking my answer submission. Thanks.

WA = your output did not match with expected output, hence Wrong Answer (WA). The judge checks for exact match.

I’m getting the right answer when executing it on the IDLE. But it still gives me WA on my answer submission

It means there exists some input for which your output is wrong. Code is tested not only on sample input, but additional inputs as well.

Thanks for the help @vijju123. It helped a lot.

can anyone tell me error in my code?
question: https://www.codechef.com/problems/LCH15JAB
my code : https://www.codechef.com/viewsolution/16190518

Your question is upgraded to an independent question, here - https://discuss.codechef.com/questions/116536/please-help-me-in-lch15jab-beginner-level

Please upvote this comment. I want to get reputation points.

Would it be possible for the author of CHEFNIL (or somebody else) to share the piece of code that is used to calculate the score of a solution?

I’m asking for this because I wrote a program which generates two possible solutions, computes the sum of points for both, and outputs the one with a larger sum. When I change the program to output just the first of those solutions (and ignore the second), the score of my submission goes up, and I can’t make sense of why this is happening.

Its against the rules. People may report you instead.

Comment section is the place for it. If they dont respond, then take that as a no. Put your case formally, make sure you emphasize the point where you are facing issue. Hope that helps :slight_smile:

I am new to codechef and i don’t know how to add constraints mostly given as sub-task2 in codechef problems i tried using the conditional statements but it is still showing sub-task-2 failed
some of my submission are:

problem link :https://www.codechef.com/LTIME53/problems/MAXNUM3/

solution :https://www.codechef.com/viewsolution/15991700

also how to increase this reputation thing i am unable to ask questions.?

You dont have to check for constraints. Constraints means that, the question setter is telling you “The values in input of these variables range from this to that.”

Computer dont have infinite memory and execution speed, so they check your code over some moderate-large inputs- and must specify the size of it so you can make a program to efficiently handle it :slight_smile:

@vijju123 then why my above submission is failing to satisfy the given sub-task2 even if my piece of code is not computing anything for large inputs.
will any plz.look at my submission once.