Cod sursa(job #1245701)

Utilizator LEUTzzVadastreanu Cristian-Ionut LEUTzz Data 19 octombrie 2014 20:55:41
Problema A+B Scor 0
Compilator c Status done
Runda Arhiva de probleme Marime 0.31 kb
#include <iostream>

void main () {

	FILE *f;
	int A,B;
	f = fopen("adunare.in","r");
	fscanf(f,"%d\n",&A);
	fscanf(f,"%d",&B);
	fclose(f);
	f = fopen("adunare.out","w");
	/*if((A+B) > 2000000) {
		fclose(f);
	}else{ 
		fprintf(f,"%d",A+B);
		fclose(f);
	}*/
	fprintf(f,"%d",A+B);
	fclose(f);
	
}