Cod sursa(job #2211600)

Utilizator PetyAlexandru Peticaru Pety Data 11 iunie 2018 09:49:17
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.25 kb
#include <bits/stdc++.h>

using namespace std;

ifstream fin ("cmmdc.in");
ofstream fout ("cmmdc.out");

long long a, b;

int main()
{
  fin >> a >> b;
  int x = __gcd(a, b);
  if (x == 1)
    fout << 0;
  else
    fout << x;
  return 0;
}