S先生与P先生谜题
设有两个自然数X、Y,2<=X<=Y<=99,S先生知道这两个数的和S,P先生知道这两个数的积P,
他们二人进行了如下对话:
* S: 我确信你不知道这两个数是什么,但我也不知道。
* P: 一听你说这句话,我就知道这两个数是什么了。
* S: 我也是,现在我也知道了。-Mr. S and Mr. P puzzle has two natural number X, Y, 2
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.010726s ]
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.074390s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000922s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001170s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000938s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003434s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000893s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003742s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014463s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001357s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 129445 [ RunTime:0.013832s ]