火车车厢重排问题:给定一个任意的车厢排列次序。重新排列车厢,使其按照从1到n的次序排列。规定重排时只能从入轨到缓冲铁轨,或者从缓冲铁轨到出轨。-Train cars rearrangement problem: given an arbitrary compartment order of merit. Rearrange the cars, so that from 1 to n according to the order. Rearrangement can only be provided to the buffer from the orbit track, or tracks from the buffer to the derailment.
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001465s ]
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.089688s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.274903s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.003917s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.004871s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.005392s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.016949s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.009704s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.035809s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001175s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 177797 [ RunTime:0.027095s ]