Cod sursa(job #285625)
Utilizator | Data | 22 martie 2009 19:38:13 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <cstdio>
int main()
{
FILE *f = fopen("adunare.in", "r");
long a, b;
fscanf(f, "%ld%ld", &a, &b);
fclose(f);
f = fopen("adunare.out", "w");
fprintf(f, "%ld", a+b);
fclose(f);
return 0;
}