cf/mirror

LCM Problem

CF
1389A800· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
1 1337
13 69
2 4
88 89
Output
6 7
14 21
2 4
-1 -1
1389A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)