随笔分类 -  HRBUST

 
HRBUST 1328 相等的最小公倍数
摘要:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1328判断n因式分解后是否是a^b的形式,是则输出NO,反之YESView Code #include <stdio.h>#include <math.h>#include <stdlib.h>#include <string.h>int jj(int n){ int i,f1=0,f2=0,t; t=n; for(i=2;i<t;i++) { if(!f1) { if(n%.. 阅读全文
posted @ 2012-04-06 00:50 LegendaryAC 阅读(188) 评论(0) 推荐(0)