doramon
1
why it’s showing wrong answer??
for each i —< pi
calculated element in each connected component…
ans will be their lcm…
solution
Refer to this answer to see why your code is wrong
Can you provde the link to your question
doramon
5
Thnxx got it.but is there any thing wrong other than calculating lcm??