Description: Please write a program to solve the problem Basketball wrong row. Lined baskets known n (n is any positive integer entered by the user), from left to right were labeled No.: 1,2, ... ..., n each ball has numbers were also 1,2, ... ..., n. To the n balls are all placed in the n-basket to meet: Each basket to place a ball, the ball can not number the number of baskets with the same host, and the ball in the basket next to the ball can not be No. adjacent. For example, if two adjacent ball basket ball No. 9 and 10, respectively, it is not allowed. Please put out the ball all the way to meet the requirements (to meet the requirements for each release the ball way, should be output in each basket ball number).
To Search:
File list (Check if you may need any files):
篮球错排问题\array\array.cpp
............\.....\array.dsp
............\.....\array.dsw
............\.....\ReadMe.txt
............\.....\..lease\array.exe
............\.....\StdAfx.cpp
............\.....\StdAfx.h
............\Readme.txt
............\array\Release
............\array
篮球错排问题