像这样
#define up(i,j,k,l) for(int i=j;i<=k;i+=l) #define down(i,j,k,l) for(int i=j;i>=k;i-=l) up(i,1,n,1) //1~n循环 down(i,n,1,1) //n~1循环