Cod sursa(job #144190)
Utilizator | Data | 27 februarie 2008 12:19:07 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <stdio.h>
FILE *f,*g;
long a,b;
int main()
{f=fopen ("adunare.in","r");
g=fopen ("adunare.out","w");
fscanf (f,"%l\n",&a);
fscanf (f,"%l",&b);
if(a+b<2000000000) fprintf (g,"%l",a+b);
fclose(f); fclose(g);return 0;}