Cod sursa(job #2335468)
Utilizator | Data | 4 februarie 2019 09:52:38 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("adunare.in");
ofstream fout("adunare.out");
int cmmdc(int a,int b)
{
int r = a % b;
while (r)
{
a = b;
b = r;
r = a%b;
}
if (b != 1)
return b;
else return 0;
}
int main()
{
int a, b;
fin >> a >> b;
fout << a+b;
return 0;
}