SHAASTRA (Problem SOPC002)

In the recently held SHAASTRA PROGRAMMING CONTEST by IITM there was a problem SOPC002. It was deleted 1 hour into the contest for no reason. Could someone explain why was it deleted as to me it seemed a solvable problem which just required GCD calculation.

The sample test case was wrong.
But 3 input, so all correct solution got WA.
(Also I have solved the same problem on a codeforces problem few month ago :slight_smile: