understanding the problem

Hi,

can anyone explain in detail what is required in the following program?

http://www.codechef.com/NCC2014/problems/MULDIV/

My code http://www.codechef.com/viewsolution/3908975

have I misunderstood the question how bad is my code :frowning: need help to improve myself but am having a hard time understanding the problem/Question itself please do lend a helping hand!

i saw your code, it will give tle, so detailed explanation is given in the below link, you can refer to that.
http://www.codechef.com/viewsolution/3915776

3 Likes

is the logic correct or wrong too cause I got a wrong answer as well.