/* -*- coding: utf-8 -*- * * 1971.cc: No.1971 Easy Sudoku - yukicoder */ #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int n; scanf("%d", &n); for (int i = 0; i < n; i++) for (int j = 0; j < n; j++) printf("%d%c", (i + j) % n + 1, (j + 1 < n) ? ' ' : '\n'); return 0; }