Cod sursa(job #1545301)

Utilizator CibotaruMateiCibotaru Matei CibotaruMatei Data 6 decembrie 2015 16:52:07
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include <fstream>
using namespace std;

fstream f, g;
int a, b;

int main() {
    f.open("adunare.in", ios::in);
    f >> a >> b;
    f.close();
    g.open("adunare.out", ios::out);
    g << (a + b);
    g.close();
    return 0;
}