代码搜索:背包问题
找到约 10,000 项符合「背包问题」的源代码
代码结果 10,000
www.eeworm.com/read/358723/10180698
doc 选票问题.doc
www.eeworm.com/read/358598/10184105
cpp josephus问题.cpp
#include
#include
struct josephus
{
int code;
josephus * next;
};
void main()
{
int number;
int interal;
cout
www.eeworm.com/read/357087/10216419
txt 存在问题.txt
6月5日晚
问题:
(1)按“停止显示”后,再按“显示画面”,反应很慢,延迟很大,
怀疑与打开、关闭摄像头操作有关;
(2)如果什么都不显示,静态控件背景为透明,需要解决。
www.eeworm.com/read/356862/10220130
txt 约瑟夫问题.txt
Josephus问题
约瑟夫问题
设n个人围成一圈,标号为0..n-1,从第一个人开始依次从1到k循环报数,当报到
k的时候此人出圈。设J(n, k, i)表示第i个出圈的人的标号。
定理一:
J(n, k, 1) = (k-1) mod n, (n >= 1, k >= 1) ………… (1)
证明:
由定义直接得证。
www.eeworm.com/read/425841/10317081
txt 金山问题.txt
1.new delete malloc free
delete会调用对象的析构函数,和new对应free只会释放内存,
new调用构造函数。
malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。它们都可用于申请动态内存和释放内存。
对于非内部数据类型的对象而言,光用maloc/free无法满足动态对象的要求。对象在创建的同时要自动执行构造函数, ...
www.eeworm.com/read/279550/10421105
txt 有问题.txt
#include
#include
#include
#include
#include
using namespace std;
#define MAXLEN 100005
int n,bn; //字符串长度
int power, lstSA[MAXLEN], l
www.eeworm.com/read/279550/10421163
txt 滑雪问题.txt
/*
输入:
5 5
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
输出:
25
输入:
5 6
21 19 17 16 15 14
22 24 20 18 12 13
23 25 26 13 11 9
3 2 1 27 8 10
4 5 6 28 7 30
www.eeworm.com/read/423545/10552226
ppt 对称问题.ppt
www.eeworm.com/read/159770/10618668
c 迷宫问题.c
#include
#define r 64
#define m2 8
#define n2 10
int m=m2-2,n=n2-2;
typedef struct
{
int x,y; //行列坐标
int pre;
}sqtype;
sqtype sq[r];
struct moved
{
int x, y; //坐标增量,取值-1
www.eeworm.com/read/276181/10758421
c 灯塔问题.c
//灯塔问题
#include
#include
#include
int sz[11][11],cf=1,k,n,a[20],b[20],c[20];
void shuru(void);
void shuchu(void);
bool panduan(void);
void goujian(void);
vo