Cod sursa(job #346073)

Utilizator TFifesPorcescu Alexandru TFifes Data 6 septembrie 2009 16:27:17
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.26 kb
#include<iostream>
#include<fstream>
using namespace std;
int main ()
{
    ifstream x("adunare.in");
    ofstream y("adunare.out");
    int a,b;
    long s=0;
    x>>a;
    x>>b;
    s=a+b;
    y<<s;
    x.close();
    y.close();
    return 0;

}