Hello codechef users! I’m trying to solve this problem.
Look at http://discuss.codechef.com/questions/58386/please-explain-the-rins-network-flow-solution