Cod sursa(job #1232613)
Utilizator | Data | 23 septembrie 2014 15:41:47 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
ifstream f("adunare.in");
ofstream g("adunare.out");
int a, b;
f>>a; f>>b;
if((a+b)>2000000)
cout<<"Numerele sunt prea mari!";
else
g<<a+b;
return 0;
}