4520: P1219 [USACO1.5] 八皇后 Checker Challenge

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

Input

Output

Sample Input Copy

6

Sample Output Copy

2 4 6 1 3 5
3 6 2 5 1 4
4 1 5 2 6 3
4

HINT