cf/mirror

Magic Grid

CF
1208C1800· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
Output
8 9 1 13
3 12 7 5
0 2 4 11
6 10 15 14
Sample 2of 2
Input
8
Output
19 55 11 39 32 36 4 52
51 7 35 31 12 48 28 20
43 23 59 15 0 8 16 44
3 47 27 63 24 40 60 56
34 38 6 54 17 53 9 37
14 50 30 22 49 5 33 29
2 10 18 46 41 21 57 13
26 42 62 58 1 45 25 61
1208C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)