1.Wrong Logic Without LCM Still 100/100 !! 2.Right Logic With LCM 100/100 !! This Solution contains wrong logic still it gives 100/100 This Solution only gives perfect answer when they give input A & B as the LCM(A,B) is A or B only.else it's wrong u can check that. The Hidden test case files only contains that input in which LCM(A,B) is A or B.. so Test Cases are not considering all conditions.. Even The Example Test case is not in that test case file !! Because this solution gives wrong answer in that example test case also !!! still it gives AC(100/100) !!!! asked 13 Feb, 21:47

Yeah it's observable according to your logic: 6/2=3 and 6/3=2 then 32=1 and 1<3 hence it's 'Lose then this should be a wrong answer. answered 13 Feb, 22:17

yeah you are right the hidden test cases only have LCM(a,b) == a or b that's why his solution worked I think that ideal solution should be after considering the LCM of a,b see these two solutions of mine : answered 13 Feb, 22:32

Seems like question has weak test cases. The accepted solution without LCM should be WA. answered 14 Feb, 02:21
