#include<iostream>
using namespace std;
int main(void)
{
int n;
int temp;
while (cin >> n)
{
for (int i = 1; i <= n; ++i)
{
temp = i;
while (temp <= n)
{
cout << temp << " ";
++temp;
}
temp = 1;
while( temp < i)
{
cout << temp << " ";
++temp;
}
cout << endl;
}
}
return 0;
}
最小拉丁矩阵
最新推荐文章于 2019-03-08 20:53:33 发布