Cod sursa(job #408547)
Utilizator | Nume complet RbkPlaY | Data | 3 martie 2010 08:33:00 |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include<fstream>
#include<iostream>
using namespace std;
int A,B;
int main()
{
ifstream fin("adunare.in");
ofstream fout("adunare.out");
fin>>A>>B;
int C=A+B;
if(C<=2000000000) fout<<C;
else fout<<"Suma depaseste 2000000000";
return 0;
}