Description: The problem put forward: 17 th century French mathematician gaspar s book "the game of mathematics problems describes many interesting questions, Joseph is one of them:
15 Christian and pagan 15 with a ship sailing by, on the wind was blowing and crisis extremely, pilot told everyone, as long as the whole ship half of them into the sea, and the rest will survive. We all agree with this method, and the agreement is 30 a circle By the first man up to number off, each number to 9 people gave him into the sea, and the next then from 1 began to sound off, who was put into the sea and 9, in circulation, until 15 people left so far. The question is how to row in the sea to input method for all pagan?
Programming ideas: this was the answer to the question it concealed in the following lines:
From Numbers aid and art, (depending on the number and the magic,)
Never will fame depart! (reputation will never leave you!)
This poem of vowels in order as: oueaiaaeeiaeea, respectively for 1, 2,
To Search:
File list (Check if you may need any files):
智者生存\4_22.cpp
........\4_22.dsp
........\4_22.dsw
........\4_22.ncb
........\4_22.opt
........\4_22.plg
........\智者生存.doc
智者生存