delete pics to save space
This commit is contained in:
19
history_source/ccf 基础篇/U8/8.6.1.cpp
Normal file
19
history_source/ccf 基础篇/U8/8.6.1.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int zd(int a,int b)
|
||||
{
|
||||
return (b==0)?a:zd(b,a%b);
|
||||
}
|
||||
int zx(int a,int b)
|
||||
{
|
||||
return a*b/zd(a,b);
|
||||
}
|
||||
int main()
|
||||
{
|
||||
int n,m;
|
||||
while(true)
|
||||
{
|
||||
cin>>n>>m;
|
||||
cout<<zx(n,m)<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user