can anyone please have a look at my solution for the chfmot18 problem? Below is the link to my solution:
https://www.codechef.com/viewsolution/34769356
Thank you so much!
can anyone please have a look at my solution for the chfmot18 problem? Below is the link to my solution:
https://www.codechef.com/viewsolution/34769356
Thank you so much!
Following are the conditions that you are not considering correctly -
Your first obs is wrong as i have guaranteed than N is even
yes…N is always even, but s can be odd
easiest solution
Note that you have written S=N.
Now S and N have same parity.
Thank you so much!
yes, I got the 2nd point.
Thank you so much!
yes, I checked it.
Thank you so much!
yes…got it. My bad.
yes…right. Thanks for pointing it out.