代码搜索:背包问题
找到约 10,000 项符合「背包问题」的源代码
代码结果 10,000
www.eeworm.com/read/483542/6598622
doc 追击问题.doc
www.eeworm.com/read/481249/6646455
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
www.eeworm.com/read/481249/6646489
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/480419/6663581
txt 金山问题.txt
1.new delete malloc free
delete会调用对象的析构函数,和new对应free只会释放内存,
new调用构造函数。
malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。它们都可用于申请动态内存和释放内存。
对于非内部数据类型的对象而言,光用maloc/free无法满足动态对象的要求。对象在创建的同时要自动执行构造函数, ...
www.eeworm.com/read/479176/6700338
doc 综合问题.doc
www.eeworm.com/read/263511/11359927
doc java问题.doc
www.eeworm.com/read/408884/11366261
c 鸡问题.c
#include
void main()
{
int i,j,k,n=1;
printf("一百元买一百只鸡\n\n母鸡2元/只,公鸡1元/只,小鸡0.5元/只\n\n有以多下种买法可供参考:\n");
for(i=0;i
www.eeworm.com/read/407780/11410813
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/407780/11410831
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/405283/11466983
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