Note:-I’m not sure if my claim is right.
Link to the problem:- https://www.codechef.com/MAY19A/problems/CHEFXCHG
There is a misprint in the problem-statement.
It states that:-
"Send operation will change B(a) by K/ R and will also change B(b) by K/ R. "
Which is wrong.
It should be mentioned that : -
“Send operation will change B(a) by K X R and will also change B(b) by K X R”
If this is not done, final balance will not be zero according to given sample i/o.
Only 3-days are left for the Long Challenge and I don’t know why no one mentioned this.
Please make the required changes/remove the challenge problem/extend the Long Challenge.