What should be the answer in case of 4 2? Shouldn't the NO condition should be a%b==0 instead of b==1.
@soumikdutta78673 жыл бұрын
Well explained bro... keep posting this type of content.
@maruf_sarker Жыл бұрын
Thank you 😊
@alimjafargaming69253 жыл бұрын
nice explanation
@gthotaku3393 жыл бұрын
THANK U!!
@questionpaper42723 жыл бұрын
Bro, I have a doubt. While explaining u said z should be the greatest number and it's A*B ,but is that always true!?? Because if I take A =4 and B=6 , And x=24, y=4 z=28 . In this case z is bigger but not divisible by 24!?? Please do respond!!
@ashishcode3 жыл бұрын
That's not correct na, z SHOULD be divisible by A*B, if you have A=4, B=6 then z should be a multiple of A*B, which 28 is not a multiple of 24.
@questionpaper42723 жыл бұрын
@@ashishcode they didn't specify that z must be the good number, they only said among x, y,z one is good and one is almost good!? Am I right
@questionpaper42723 жыл бұрын
Not one sry, 2 almost good number
@ashishcode3 жыл бұрын
@@questionpaper4272 Yeah you are right, that can work but the logic or a certain answer would be with the code I have shown, multiple answers are possible most of the time
@questionpaper42723 жыл бұрын
@@ashishcode But then we should consider everything no brother!?
@questionpaper42723 жыл бұрын
Bro, one small doubt,!? What do u mean by hack with respect to this contest!?
@ashishcode3 жыл бұрын
Afte you lock your solution, you can hack someone's problem, meaning if they have an incorrect solution which passed pretests then you can put a test case where it gives wrong answer.