Cod sursa(job #323764)

Utilizator PojoVlad Pojoga Pojo Data 13 iunie 2009 13:47:05
Problema A+B Scor 100
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;
	
	ifstream 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;
}