Cod sursa(job #30872)
Utilizator | Data | 15 martie 2007 11:11:25 | |
---|---|---|---|
Problema | Reguli | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.33 kb |
#include<stdio.h>
struct nod{int x;nod * next;};
typedef nod* list;
list a[10000],aux;
int main()
{
int i,j;
for(i=1;i<=9000;i++)
{
a[i]=new nod;
a[i]->next=NULL;
a[i]->x=100;
for(j=1;j<150;j++)
{
aux=new nod;
aux->next=a[i];
a[i]=aux;
a[i]->x=100;
}
}
return 0;
}