Cod sursa(job #223842)
Utilizator | Data | 29 noiembrie 2008 15:37:15 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<iostream>
#include<algorithm>
#include<fstream>
using namespace std;
int main()
{
int a,b,s;
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>a>>b;
s=a+b;
if (s<2000000)
g<<s;
f.close();
g.close();
}