Cod sursa(job #963557)
Utilizator | Data | 17 iunie 2013 19:05:57 | |
---|---|---|---|
Problema | Tije | Scor | 5 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
int i,j,n;
int main()
{
freopen("tije.in","r",stdin);
freopen("tije.out","w",stdout);
scanf("%d",&n);
for(i=n;i>=1;i--)
for(j=1;j<=n;j++)
printf("%d %d\n",i,i+1);
for(i=1;i<=n;i++)
printf("%d 1\n",n+1);
return 0;
}