I do not understand how I solve this problem. Please help me by giving me the basic idea to solve this problem. Give me the c++ solution of this problem. It will be very helpful for me.
problem link: https://www.spoj.com/problems/KTRANS/
KTRANS — K-transfer journey Help me to solve this one.
I do not understand how I solve this problem. Please help me by giving me the basic idea to solve this problem. Give me the c++ solution of this problem. It will be very helpful for me.
problem link: https://www.spoj.com/problems/KTRANS/