Cod sursa(job #253053)

Utilizator thebest001Neagu Rares Florian thebest001 Data 5 februarie 2009 13:18:20
Problema Tije Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.39 kb
#include <stdio.h>

int main()
{
	freopen("tije.in","r",stdin);
	freopen("tije.out","w",stdout);
         scanf("%d",&n);
         for(i=n-1;i>0;i--)
         {       for(j=n;j>0;j--)
                         for(k=i;k>0;k--)
                                 printf("%d %d\n",j,j+1);
                 for(j=i;j>0;j--)
                         printf("%d 1\n",n+1);
         }
         return 0;

}