Can somebody post editorial for this problem?
It will be posted soon.
link of the editorial https://discuss.codechef.com/t/chocolate-day-cc003-editorial/54990