Home > Back-end >  Everybody to help me to do 1 problem, won't do...
Everybody to help me to do 1 problem, won't do...

Time:10-31


there are n people, in a circle, starting from any one, use 1, 2, 3,... , n according to clockwise Numbers for everyone, then start from the first s people, according to the clockwise from 1 to m number off, report to the first m personal ones; Then from the next person to continue to count off from 1, continue to ones; Until all ones, give everyone the ones with the order,
enter
only one line, n, s, m,
o
only one line, including ones with order, separated by a space in the middle,
data size
100% for data, n & lt;=1000,
sample input
4 1 3
sample output
3 4 2 1
  • Related