From bc053a9ca071cafd123b42a83640fe90cd191dc6 Mon Sep 17 00:00:00 2001 From: KiritoTRw <3021577574@qq.com> Date: Thu, 26 May 2016 07:37:06 +0800 Subject: [PATCH] Create 1748.c --- QUSTOJ/1748.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 QUSTOJ/1748.c diff --git a/QUSTOJ/1748.c b/QUSTOJ/1748.c new file mode 100644 index 0000000..668778e --- /dev/null +++ b/QUSTOJ/1748.c @@ -0,0 +1,29 @@ +#include +int a[20][20]; +int main() +{ + int n=0,i,j,k=1,p,q; + scanf("%d",&n); + i=0; + j=n/2; + for(p=0; p0) + { + i=(i+n-1)%n; + j=(j+1)%n; + } + a[i][j]=k++; + } + i=(i+1)%n; + } + for(i=0; i