codechef ATMOQ

why it’s showing wrong answer??

for each i —< pi

calculated element in each connected component…

ans will be their lcm…


Refer to this answer to see why your code is wrong

Can you provde the link to your question

Thnxx got it.but is there any thing wrong other than calculating lcm??