Description: Coaches A, B and C will choose their players from players numbered 1 to n. To be fair, each coach orders the players according to their preferences; you are responsible for assigning them to players according to the following rules.
You got the data is a, B, C three array, said preference three coaches of the team's ranking, each array is a permutation of the numbers from 1 to N, the smaller the subscript said the coach more love the players (such as the love coach A a[0] number of players, followed by the number of a[1] player). You are from the grouping rules, has not yet been assigned players find a coach A's love team assigned to the A group; then, the distribution of B in the love coach unallocated team players to group B; then the coach is coach A C; then, B... In turn until all... The completion of the distribution of players.
Now the player, K, wants to know which coach he is assigned to, so please tell him.
To Search:
File list (Check if you may need any files):
team1-1
team1-1\Debug
team1-1\Debug\team1-1.exe
team1-1\Debug\team1-1.ilk
team1-1\Debug\team1-1.pdb
team1-1\ipch
team1-1\ipch\team1-1-5f2ef35d
team1-1\team1-1
team1-1\team1-1.sdf
team1-1\team1-1.sln
team1-1\team1-1.suo
team1-1\team1-1.v11.suo
team1-1\team1-1\Debug
team1-1\team1-1\Debug\CL.read.1.tlog
team1-1\team1-1\Debug\CL.write.1.tlog
team1-1\team1-1\Debug\link-cvtres.read.1.tlog
team1-1\team1-1\Debug\link-cvtres.write.1.tlog
team1-1\team1-1\Debug\link-rc.read.1.tlog
team1-1\team1-1\Debug\link-rc.write.1.tlog
team1-1\team1-1\Debug\link.19948-cvtres.read.1.tlog
team1-1\team1-1\Debug\link.19948-cvtres.write.1.tlog
team1-1\team1-1\Debug\link.19948-rc.read.1.tlog
team1-1\team1-1\Debug\link.19948-rc.write.1.tlog
team1-1\team1-1\Debug\link.19948.read.1.tlog
team1-1\team1-1\Debug\link.19948.write.1.tlog
team1-1\team1-1\Debug\link.22680-cvtres.read.1.tlog
team1-1\team1-1\Debug\link.22680-cvtres.write.1.tlog
team1-1\team1-1\Debug\link.22680-rc.read.1.tlog
team1-1\team1-1\Debug\link.22680-rc.write.1.tlog
team1-1\team1-1\Debug\link.22680.read.1.tlog
team1-1\team1-1\Debug\link.22680.write.1.tlog
team1-1\team1-1\Debug\link.22980-cvtres.read.1.tlog
team1-1\team1-1\Debug\link.22980-cvtres.write.1.tlog
team1-1\team1-1\Debug\link.22980-rc.read.1.tlog
team1-1\team1-1\Debug\link.22980-rc.write.1.tlog
team1-1\team1-1\Debug\link.22980.read.1.tlog
team1-1\team1-1\Debug\link.22980.write.1.tlog
team1-1\team1-1\Debug\link.read.1.tlog
team1-1\team1-1\Debug\link.write.1.tlog
team1-1\team1-1\Debug\main.obj
team1-1\team1-1\Debug\team1-1.lastbuildstate
team1-1\team1-1\Debug\team1-1.log
team1-1\team1-1\Debug\vc110.idb
team1-1\team1-1\Debug\vc110.pdb
team1-1\team1-1\main.cpp
team1-1\team1-1\team1-1.vcxproj
team1-1\team1-1\team1-1.vcxproj.filters
team1-1\team1-1\team1-1.vcxproj.user