This commit is contained in:
Andrew 2019-11-18 10:01:42 +07:00
commit 2802401eee
79 changed files with 2650 additions and 0 deletions

View file

@ -0,0 +1,20 @@
// pb_5_1_40.cpp
// Горбацевич Андрей
#include <iostream>
using namespace std;
int gcd (int a, int b) {
while (b) {
a %= b;
swap(a, b);
}
return a;
}
int main() {
int a, b, c;
cout << "a, b, c >>";
cin >> a >> b >> c;
cout << (gcd(gcd(a,b),c) == 1? "YES" : "NO") << endl;
}