Thanks…
missing Chef vijju’s corner in editorials…
I used the same idea of choosing K and then some other combination of values
The code can be made much shorter though: 18623918
You dont know how happy that makes me feel <33333333333
Sadly, I dont think I would be getting any slot for editorials till August . I thought I could do a few contests since summer vacations means lot of free time but well, lets hope for the best :).
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
okay thanks
u ll cuz its my first attempt
Happy to help bro
Will reply u on ur comment on my editorial shortly…
alright! will wait. Thankyou.
Well thank me if I solve it
solved… keeping k==1 k==2 and k==3 condition before n==2 helps… (because 2 1 test case failed…)
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 …
Okay bro you do have read above answer… that’s nice… let me check…