delete pics to save space
This commit is contained in:
17
history_source/ccf 入门篇/U4/4.2.3.cpp
Normal file
17
history_source/ccf 入门篇/U4/4.2.3.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include<iostream>
|
||||
#include<cmath>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int m,n,b,i;
|
||||
while(true)
|
||||
{
|
||||
cin>>m>>n;
|
||||
b=(m>n)?m:n;
|
||||
for(i=2;i<=b;i++)
|
||||
{
|
||||
if(m%i==0&&n%i==0) {cout<<"No"<<endl;break;}
|
||||
}
|
||||
if(!(m%i==0&&n%i==0)) cout<<"Yes"<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user