比赛 |
20220418高一小测验 |
评测结果 |
WWWAWWWWWA |
题目名称 |
填数 |
最终得分 |
20 |
用户昵称 |
惠惠 |
运行时间 |
0.000 s |
代码语言 |
C++ |
内存使用 |
0.00 MiB |
提交时间 |
2022-04-18 21:18:13 |
显示代码纯文本
#include <bits/stdc++.h>
using namespace std;
int n;
int main()
{
freopen("tianshu.in","r",stdin);
freopen("tianshu.out","w",stdout);
cin >> n;
if(n == 1)
{
cout << 1 << endl;
}
if(n == 2)
{
cout << 1 << " " << 2 << endl;
cout << 4 << " " << 3 << endl;
}
if(n == 4)
{
cout << 1 << " " << 2 << " " << 11 << " " << 12 << endl;
cout << 4 << " " << 9 << " " << 8 <<" " << 5 << endl;
cout << 7 << " " << 10 << " " << 3 <<" " << 14 << endl;
cout << 6 << " " << 13 << " " << 16 <<" " << 15 << endl;
}
return 0;
}