Cod sursa(job #1631064)
Utilizator | Data | 5 martie 2016 12:57:56 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
# include <fstream>
# include <algorithm>
using namespace std;
ifstream f ( "adunare.in" );
ofstream g ( "adunare.out" );
int suma ( int a, int b ) {
return a + b;
}
int main ()
{
int A, B;
f >> A >> B;
g << suma( A, B );
return 0;
}