| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1294596 | theiulius | 세계 지도 (IOI25_worldmap) | C++17 | 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
int n, m, x, y;
int main(){
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;
}
}
