代码搜索:预置数
找到约 10,000 项符合「预置数」的源代码
代码结果 10,000
www.eeworm.com/read/209440/15219985
fxp 水仙花数.fxp
www.eeworm.com/read/209440/15219999
prg 水仙花数.prg
sum=0
for x=100 to 999
x1=int(x/100)
x2=mod(int(x/10),10)
x3=mod(x,10)
if x1*x1*x1+x2*x2*x2+x3*x3*x3=x
? x
endif
endfor
www.eeworm.com/read/209440/15220002
bak 水仙花数.bak
sum=0
for x=100 to 999
x1=int(x/100)
x2=mod(int(x/10),10)
x3=mod(x,10)
if x1*x1*x1+x2*x2*x2+x3*x3*x3=x
list x
endif
endfor
www.eeworm.com/read/208727/15238578
cpp 随机数序列.cpp
#include
#include
#include
const double INIT_SEED=13.17;
const double PI=4*atan(1);
class Random
{
public:
Random(double fInitSeed = INIT_SEED)
{
www.eeworm.com/read/208727/15238681
cpp 积和猜数.cpp
/////////////////////////////////////////////
//----------foryou.cpp---------------------//
/////////////////////////////////////////////
//设有两个自然数a,b,2〈a,b
www.eeworm.com/read/13112/268361
c 编随机数.c
/*自编随机数*/
#include"sys\types.h"
#include"sys\timeb.h"
#include
#define ALPHA 3.95 /*宏定义ALPHA值为3.95*/
double init_value(void);
double random(void);
void main()
{
float rdn
www.eeworm.com/read/327496/3455261
c 编随机数.c
/*自编随机数*/
#include"sys\types.h"
#include"sys\timeb.h"
#include
#define ALPHA 3.95 /*宏定义ALPHA值为3.95*/
double init_value(void);
double random(void);
void main()
{
float rdn
www.eeworm.com/read/473191/6858045
txt pku 1338 紧密数.txt
#include
#include
using namespace std;
//PKU 1338 Ugly Numbers
/*
输入:
1
10
500
输出:
1
12
937500
说明:
同样是蛮力法,但是用列举每个数再判断的方法一定会超时,何不直接构造这个序列呢?
*/
#define NMAX 15