#include <stdio.h>
#include <stdbool.h>
#include <math.h>
#include <stdlib.h>
#define n 8
bool hash[n+1];
int p[n+1];
int count =0;
//暴力法 无优化
void generate(int index)
......................
阅读全部
|
晶贤
贴于 2020年11月22日 17:01
hide
bbsi
<html>
<head>
<meta charset="utf-8">
<title>素數算法</title>
</head>
<body>
<p>素數算法</p>
<br>
<script src=prime.js>
var arr=new Array();
var n=parseInt(prompt(" 請輸入要列出素數在多少整數范圍之內:", " "));
......................
阅读全部
|
qunxingw
贴于 2020年11月22日 11:46
hide
bbsi
<html>
<head>
<title>test</title>
<meta charset="utf-8">
</head>
<body>
<script >
var arr=[9,87,25,36,89,14,51,19,63];
......................
阅读全部
|
qunxingw
贴于 2020年11月22日 11:18
hide
bbsi
#include <stdio.h>
#include<string.h>
enum course {KONG,tiyu,xianxingdaishu,weijifen,cyuyan,yingyu}sub;
int s,w;
int fun(int s,int w,enum course t[6][7])
{int p=0,q=0;
int i,j;
for(i=0;i<6;i++)
{for(j=0;j<7;j++)
{if(i==1&&j==0)
t[i][j]=tiyu;
else if(i==0&&j==2)
......................
阅读全部
|
lx1455172065
贴于 2020年11月22日 08:45
hide
bbsi
#include <stdio.h>
//结点类型定义
typedef struct Node
{
int data;
struct Node *next;
}Node,*LinkList; //
//主函数
int main()
{
int InitList(LinkList *L);
......................
阅读全部
|
average
贴于 2020年11月18日 20:43
hide
bbsi
#include <stdio.h>
#include <math.h>
int main ()
{
double a,b,c,deta,x1,x2,p,q;
scanf("%lf%lf%lf",&a,&b,&c);
deta=b*b-4*a*c;
p=-b/(2*a);
q=sqrt(deta)/(2*a);
x1=p+q;x2=p-q;
printf("x1=%7.2f+%-7.2fi\nx2=%7.2f-%-7.2fi\n",p,q,p,q);
return 0;
......................
阅读全部
|
韩锡秀
贴于 2020年11月9日 20:44
hide
bbsi
import random
'''
实现一个猜数字小游戏,随机生成一个0~100以内的数据,由玩家来猜
每次猜完之后计算机告诉玩家是猜大了还是猜小了
共5次机会,5次猜不出来宣布游戏失败。
'''
class GuessNum:
......................
阅读全部
|
SunCZ
贴于 2020年11月9日 18:24
hide
bbsi
Option Explicit
Public b
Public index
Public TCount As Integer''时钟刷新次数
'抽签30个,点击抽签显示数字,不重复(抽一个少一个)
Private Sub Form_Load()
Timer1.Enabled = False
index = 1
Randomize
ReDim b(1 To 1) As Integer
......................
阅读全部
|
ysz123
贴于 2020年10月26日 10:48
hide
bbsi