KMXOR - Editorial

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…

Can you suggest me something to improve my editorial ??

Let me have a look. Will suggest if I find any :slight_smile:

1 Like

okay thanks :slight_smile:
u ll cuz its my first attempt :smiley:

Thank you so much @vijju123
It was a great help for me… :smiley:

1 Like

Happy to help bro :slight_smile:

1 Like

Will reply u on ur comment on my editorial shortly…

alright! will wait. Thankyou. :slight_smile:

Well thank me if I solve it :slight_smile:

solved… keeping k==1 k==2 and k==3 condition before n==2 helps… (because 2 1 test case failed…)

try this test case and do let me know if there wasn’t any mistake…

all above test cases pass …
plz if possible check for once …
I even type-casted pow function value to long long …

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

thnx in advance …

this is the edited one with minor changes …
plz see whats the mistake
i am getting WA …

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

Okay bro you do have read above answer… that’s nice… let me check…