Two Numbers Question Doubt

Can anyone Please tell me the logic behind this question. I have just started Competitive Programming.
And was struggling in this question.Please Help…!

Read from here…you wil get it!

1 Like

Yeah, so see, after the contest is over, Again open the question and scroll down,
There you will find a link that says:EDITORIAL…
THat’s it…Editorial contains detailed explanation of the problem solving approach to the problem.!

2 Likes

You ought to use search feature of the forums. Just write the Q code in it and it will give you ALL topics related to the Q.

Also, for any Q, editorial link is given in the section where it tells about problem setter and other details. Its just how things work here.

1 Like

if(n%2==1)
a=a*2;
(a>b)?(printf("%lld\n",a/b)):(printf("%lld\n",b/a));

//