Algoritmlar, 0-dars
{BB}
21

yana 2 xil varianti bor:

  1. (a * b)/(lcm(a, b)) — lcm bu yerda least common multiple
  2. binary usul, lekin bu usul faqatgina musbat sonlarda ishlaydi :(

http://ideone.com/DEaDJ5

vrode boshqacha varianti yo’q sheklli Bahriddin???

Like what you read? Give Abdujabbor Mirkhalikov a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.