Cod sursa(job #1772871)

Utilizator alexkolumeRadulescu Ioan-Alexandru alexkolume Data 7 octombrie 2016 09:26:23
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
    fstream f("adunare.in");
    ofstream g("adunare.out");
    int a, b;
    long s;
    f >> a >> b;
    s = a + b;
    g << s;
    f.close();
    g.close();
    return 0;
}