Cod sursa(job #613029)
| Utilizator | Data | 14 septembrie 2011 21:54:15 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | test_info20 | Marime | 0.48 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
long long a,b;
ifstream myfile ("adunare.in");
ofstream myfile1 ("adunare.out");
//string a1,a2,b1,b2;
if (myfile.is_open())
{
myfile>>a>>b;
myfile.close();
} else cout << "Unable to open file";
//cout<<a<<" "<<b;
if (myfile1.is_open())
{
//cout<<a<<endl;
// cout<<b;
myfile1<<a+b<<endl;
}
return 0;
}
