Cod sursa(job #699122)
Utilizator | Data | 29 februarie 2012 17:38:09 | |
---|---|---|---|
Problema | Tablete | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.35 kb |
#include<cstdio>
using namespace std;
int n,k,i,j;
int main()
{
freopen("tablete.in","r",stdin);
freopen("tablete.out","w",stdout);
scanf("%d%d",&n,&k);
if (k%2==0)
for (i=1;i<=n;i++)
{
for (j=1;j<=n;j++)
printf("%d",i*n-n+j);
printf("\n");
}
return 0;
}