Cod sursa(job #219610)
Utilizator | Data | 7 noiembrie 2008 19:00:01 | |
---|---|---|---|
Problema | Stramosi | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<stdio.h>
int main()
{
int s=0,x;
FILE *f1,*f2;
f1=fopen("date","r");
f2=fopen("date.out","w");
while(fscanf(f1,"%d",&x)!=EOF)
s=s^x;
fprintf(f2,"%d",s);
return 0;
}