Let me have a look. Will suggest if I find any
okay thanks
u ll cuz its my first attempt
Happy to help bro
Can someone please provide a test case that fails?
It passes all the below mentioned test cases and I am still getting WA.
9
4 1
5 1
5 2
6 2
5 3
6 3
5 8
2 8
4 8
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…)
whats wrong in my solution …
someone plz help
thnx in advance…
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…
can anyone describe this editorial in brief please…
i have further modified the code …
plz check …
… https://www.codechef.com/viewsolution/18676006…
i have got many WA …
…
plz help …
thnx in advance !!!
HERE is my unofficial editorial(I have described whole soln there)
my solution was almost same as this editorial soln…
Can anyone tell whats wrong with my solution its getting WA https://www.codechef.com/viewsolution/18702042
try this test case and have a look at editorial(unofficial) if u r not missing anything(specially corner cases that I mentioned)…
I m getting right answers in all the test cases mentioned above.Please have a look.
1 1 1 1
1 1 1 1 1
1 2 1 1 1
2 1 1 1 1 1
3 1 1 1 1
2 1 1 1 1 1
1 2 12 1 1
8 7
8 7 1 1