Cod sursa(job #422037)
Utilizator | Data | 22 martie 2010 05:47:09 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <fstream>
using namespace std;
ifstream fi("adunare.in");
ofstream fo("adunare.out");
int a[10], b;
int main() {
fi >> a[-1] >> b;
fo << a[-1]+b;
fi.close(); fo.close();
return 0;
}