Cod sursa(job #323761)

Utilizator PojoVlad Pojoga Pojo Data 13 iunie 2009 13:34:03
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.3 kb
#include <fstream>
#include <iostream>

using namespace std;

int main()

{
	long long a,b,s;
	
	fstream myfile;
	myfile.open ("adunare.in");
	myfile >>a>>b;
	myfile.close();
	
	s=a+b;
	
	ofstream myfile1;
	myfile1.open ("adunare.out");
	myfile1 << s;
	myfile1.close();
	return 0;
}