#apc001a. [apc001_a]Two Integers

[apc001_a]Two Integers

给出两个正整数x,y,你需要输出一个不超过1e18,能被x整除却不能被y整除的正整数. 如果不存在,输出-1.

感谢@Fuko_Ibuki 提供的翻译