Cod sursa(job #278541)

Utilizator c_e_manuEmanuel Cinca c_e_manu Data 12 martie 2009 13:13:08
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.57 kb
#include<fstream.h>
#define N 30000
ifstream fin("adunare.in");
ofstream fout("adunare.out");

int a[N];

int main()
{       int b[N],c[N],d[N],e[N],i,j,k;
	for(k=0;k<30000;k++)
		a[k]=b[k]=c[k]=d[k]=e[k]=1;
	for(j=1;j<=20;j++)
		fout<<a[j]<<' ';
	fout<<'\n';
	for(j=1;j<30000;j++)
	{	fout<<b[j]<<' ';
		if(j%30==0)fout<<'\n';
	}
	for(j=1;j<30000;j++)
	{	fout<<c[j]<<' ';
		if(j%30==0)fout<<'\n';
	}
	for(j=1;j<30000;j++)
	{	fout<<d[j]<<' ';
		if(j%30==0)fout<<'\n';
	}
	for(j=1;j<30000;j++)
	{	fout<<e[j]<<' ';
		if(j%30==0)fout<<'\n';
	}
	return 0;
}