HDOJ 1406 完数
来源:互联网 发布:js 按字母排序 编辑:程序博客网 时间:2024/06/16 08:50
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1406
有时候暴力,也是一种解决问题的方法....
#include <stdio.h>
#include <math.h>
#define SWAP(X,Y) {int T;T=X;X=Y;Y=T;}
bool judge(int n)
{
}
int main()
{
}
*******************************************
谁知道这一种代码为什么这样,6-28,28-496,496-8128,
在10000的范围内存在着三个这样的范围的数,其范围内全部为完数
#include <stdio.h>
#define SWAP(X,Y) {int T;T=X;X=Y;Y=T;}
const int PrefectNum[4] = {6,28,496,8128};
int main(void)
{