Cod sursa(job #10069)
Utilizator | Data | 27 ianuarie 2007 20:52:34 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.44 kb |
#include <stdio.h>
//#include <conio.h>
#ifndef __CONIO_H
void clrscr() { freopen("adunare.out","w",stdout); }
void getch() { } //fclose(stdout); }
int debug(const char *format,...) {}
#else
#define debug printf
#endif
typedef unsigned long uint32;
int main()
{
FILE *fin = fopen("adunare.in", "r");
clrscr();
uint32 a,b,u;
fscanf(fin,"%ld\n%ld\n", &a, &b);
u = a+b;
printf("%ld\n", u);
getch();
return 0;
}