#2479. 【例32.2】 凑数
【例32.2】 凑数
说明
现有两个正整数 $x$,$y$,试问你在 $1000$ 以内最大既不是 $x$ 的倍数,也不是 $y$ 的倍数的正整数是多少?输入格式
只有两个整数 $x$,$y4($2≤x,y≤1000$)。输出格式
一个正整数表示答案。2 3
997
2 3
997
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.