摘要: 以下内容均节选自《算法导论》第31章最大公约数定义:若:\[\begin{array}{l}a = p_1^{e_1}p_2^{e_2} \ldots p_r^{e_r}\\b = p_1^{f_1}p_2^{f_1} \ldots p_r^{f_r}\end{array}\]则:\[\gcd( a... 阅读全文
posted @ 2014-08-26 22:53 姜楠 阅读(1076) 评论(0) 推荐(0)
摘要: 题意: 题目撰写者的英语真是艰难晦涩,看了别人题解,才知道这题题意。 两个forger 一个froger 要蹦到另外一个froger处,他们的最短距离是这样定义的 : The frog distance (humans also call it minimax distance) between two stones therefore is defined ... 阅读全文
posted @ 2014-08-26 16:48 姜楠 阅读(730) 评论(0) 推荐(0)