2010年4月10日

摘要: bfs,主要是用pre记录前驱,输出路径。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<iostream>#include<cstdio>#include<cstring>#include&l... 阅读全文
posted @ 2010-04-10 17:16 lee41sum 阅读(289) 评论(0) 推荐(1) 编辑
 
摘要: Def: Phi(n) = # of factors a s.t. (a, n) = 1Thm: Let p1, p2... pk be all prime factors of n,then,Phi(n) = n(1 - 1/p1)(1 - 1/p2)... (1 - 1/pk).Proof 1:It suffices to show that1) Phi(p) = p2) Phi(p^k) =... 阅读全文
posted @ 2010-04-10 00:21 lee41sum 阅读(465) 评论(1) 推荐(1) 编辑