Cod sursa(job #7339)

Utilizator hadesgamesTache Alexandru hadesgames Data 21 ianuarie 2007 13:28:18
Problema Aprindere Scor 0
Compilator cpp Status done
Runda preONI 2007, Runda 1, Clasa a 9-a si gimnaziu Marime 0.43 kb
#include <stdio.h>
#include <stdlib.h>
int main ()
{
	FILE *in,*out;
	int m,n;
	in=fopen("aprindere.in","r");
	out=fopen("aprindere.out","w");
	fscanf(in,"%d%d",&m,&n);
	/*for (i=1;i<=m;i++)
		fscanf(in,"%d",&a[i]);
	for (j=1;j<=n;j++)
	{
		fscanf(in,"%d",&x);
		fscanf(in,"%d%d",&t[x],&nr[x][0]);
		for(i=1;i<=n;i++)
			fscanf("  */
	randomize();
	fprintf(out,"%d",rand() %(n));
	fclose(out);
	fclose(in);



}