Cod sursa(job #1069186)
Utilizator | Data | 29 decembrie 2013 16:04:53 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.33 kb |
#include <iostream>
#include<fstream>
#include<conio.h>
using namespace std;
int main()
{
ifstream f("adunare.in");
ofstream g("adunare.out");
long int a,b,s;
f>>a>>b;
s=a+b;
if (s>2000000000) cout<<"Suma depaseste 2.000.000.000";
else g<<s;
f.close();
g.close();
getch();
}