Cod sursa(job #197655)

Utilizator Omega91Nicodei Eduard Omega91 Data 5 iulie 2008 13:27:16
Problema Grigo Scor 0
Compilator cpp Status done
Runda Junior Challenge 2008 Marime 1.32 kb
#include <cstdio>
int main()
{
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	//qwertyuiopasdfghjklzxcvbnqwertyuiopasdfghjklzxcvbnm
	FILE *f1, *f2;
	int n, m;
	f1 = fopen("grigo.in", "r");
	f2 = fopen("grigo.out", "w");
	fscanf(f1, "%d %d", &n, &m);
	if (n == m) fprintf(f2, "1\n");
	else fprintf(f2, "0\n");
	fclose(f2);
	fclose(f1);
	return 0;
}