Nクイーン
Scheme
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
fast.scm
main.scm

README.md

Nクイーン

Nクイーン

% ./main.scm
>> 5
1回目: (0 2 4 1 3)
2回目: (0 3 1 4 2)
3回目: (1 3 0 2 4)
4回目: (1 4 2 0 3)
5回目: (2 0 3 1 4)
6回目: (2 4 1 3 0)
7回目: (3 0 2 4 1)
8回目: (3 1 4 2 0)
9回目: (4 1 3 0 2)
10回目: (4 2 0 3 1)