Cod sursa(job #1018150)
Utilizator | Data | 28 octombrie 2013 22:13:16 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <iostream>
#include <fstream>
using namespace std;
long int n,x,y,S;
int main()
{
ifstream a ("adunare.in");
ofstream b ("adunare.out");
while(a >> x)
a >> y;
b << x + y;
return 1;
}