Modular GCD problem of codechef

Have anyone got 100 pts in Modular GCD problem of Codechef.
please Help to get 100 in it.
link to the question is-:
https://www.codechef.com/AUG18B/problems/GCDMOD
Topic archived. No new replies allowed.