KMXOR - Editorial

whats wrong in my solution …
someone plz help
thnx in advance…

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

can anyone describe this editorial in brief please…

Can anyone tell whats wrong with my solution its getting WA CodeChef: Practical coding for everyone

1 Like

Please write Editorials in such a way so that a beginner like me can easily understand the explaination. Codechef should look into this matter.

Hi,

I am getting wrong answer for the following problem.

My solution : CodeChef: Practical coding for everyone

can someone please tell what is wrong in my solution?

Thanks

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

Nothing wrong with my solution still giving WA

https://www.codechef.com/submit/complete/20556327

I cannot understand what is wrong.

try this test case and do let me know if there wasn’t any mistake and i can try to help u…

FOR people getting wrong answer and not able to find their mistake after try for hours… though i suggest that u should try to solve it by your own… that the purpose of competitive coding…

solved… typecast output of power function…

1 Like

thanks mate!

1 Like

how to add this view content and hide content @vijju123 … I wanted to make this type thing for test case in my editorial but didn’t knew how to add that… thanks…

1 Like

Keep the content to be hidden in between [@hide] [@/hide] . (Remove the @ signs for it to work)

If there still exists any issue, ping me, I will mail you a screenshot :slight_smile:

1 Like

Thanks… :slight_smile:

missing Chef vijju’s corner in editorials…

1 Like

I used the same idea of choosing K and then some other combination of values :smiley:
The code can be made much shorter though: 18623918

haha what a short code @meooow
and python is also very much useful…

You dont know how happy that makes me feel <33333333333

Sadly, I dont think I would be getting any slot for editorials till August :frowning: . I thought I could do a few contests since summer vacations means lot of free time but well, lets hope for the best :).

2 Likes

When writing my code I am more focused on

“Ok , what does this part do? What guarantees correctness of concept? What guarantees correctness of implementation?”

So I elaborately write it. And people complain that they cant understand what I’m doing when I write shorter ones XD

yeah people do tell they can’t understand when code is more short, I agree…