设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列者的下一个人重新开始报数,数到m2(刚出列者所持密码)的人又出列,如此重复进行,直到n个人都出列为止。-something like Joseph problem
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001222s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.094018s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001463s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001126s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000982s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003176s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000822s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003852s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014511s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001504s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 152354 [ RunTime:0.024232s ]