Comments

Thank you for upholding fairness on Codeforces. Clear rules ensure a level playing field. Encouraging users to abide by one account fosters integrity. Consistent enforcement safeguards the community's integrity. I appreciate the proactive stance against violations, maintaining the platform's integrity and competitiveness.

On sadnessGood Bye 2023 tutorial, 3 years ago
0

1916B - Two Divisors 240657753 My code was like that

If (LCM(A,B)==B) then print:=(B/A)*LCM(A<B) else print:= LCM(A<B)

The issue arises when A = 15 and B = 60, resulting in an output of 240. However, for 240, A should be 80, B should be 120. indicating that the solution is not optimal. Can anyone suggest an optimal solution?