Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Applications Other systems
Title: D Download
 Description: Description will be m children from 1 to m made on the number, by serial number around a circle, from the beginning of the number of children on the 1st of each number to the n when the number of children to leave the circle, and then from the beginning of a child , from the beginning of a few, so keep going, only that there are only a child, asked the remaining child is a few number? Input integer input for a group of right, each integer on the line, rounded to an integer that the first m, that is, the number of children, the second integer, said n, the n was the number of children will leave. 0 <m <10000, n> 0 input to 0 0 as the end. Output each integer integer output a result, each output line. The last line of input 0 0 does not produce output.
 Downloaders recently: [More information of uploader liujm_buct]
 To Search:
File list (Check if you may need any files):
D.cpp
    

CodeBus www.codebus.net