#include<cstdio> using namespace std; int main() { int tc; scanf("%d",&tc); while (tc--) { int g,l; scanf("%d%d",&g,&l); if (l%g==0) printf("%d %d\n",g,l); else printf("-1\n"); } return 0; }
Sunday, July 17, 2016
Subscribe to:
Post Comments (Atom)
Coprights @ 2016, Coder Cart
0 comments:
Post a Comment