| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1294593 | theiulius | World Map (IOI25_worldmap) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define endl "\n"
int n, m, x, y;
int main(){
/*ifstream cin(".in");
ofstream cout(".out");*/
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin >> n >> m;
for (int i = 0; i < m; i++){
cin >> x >> y;
}
for (int i = 0; i < n; i++){
for (int j = 0; j < n; j++){
cout << (i + j) % n + 1 << " ";
}
cout << endl;
}
}
