Cod sursa(job #30868)

Utilizator moga_florianFlorian MOGA moga_florian Data 15 martie 2007 11:08:36
Problema Reguli Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.32 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<100;j++)
    {
    aux=new nod;
    aux->next=a[i];
    a[i]=aux;
    a[i]->x=100;
    }
  }
      
}