I can see few codechef discuss links regarding the questions. But when I try to click on them, it gives me error 404.
These are the questions I have mentioned above.
https://discuss.codechef.com/questions/144901/chef-and-magical-jars-problem
https://discuss.codechef.com/questions/144924/chef-and-magical-jars