Comments

gcd(12,14)=2

gcd(12,14)=2 gcd(6,9)=3 gcd(8,12)=4 gcd(10,15_=5

For Prob C (Marco And GCD Seq)

Input:

15

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Ouput:

10

6 7 8 9 10 11 12 13 14 15

Why this is given wa verdict? (set of pairwise gcd of elements produced the input set)

Got it thanks ... Got my mistake

Can anyone explain how the answer to the input 3 1 4 10 is 4..

-17

The ratings are still not updated..the contest was rated toh