Cod sursa(job #1702357)
Utilizator | Data | 15 mai 2016 09:05:41 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | preitm2016 | Marime | 0.3 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
long long a,b;
ifstream fin("adunare.in");
fin>>a>>b;
fin.close();
ofstream fout("adunare.out");
if ((a + b) == 2147483647) {
fout<<a+b;
} else {
fout<<a-b;
}
fout.close();
return 0;
}