代码搜索:背包问题

找到约 10,000 项符合「背包问题」的源代码

代码结果 10,000
www.eeworm.com/read/125442/14493937

c 2迷宫问题.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/125170/14511189

cpp 矩阵连乘问题.cpp

#include void MatrixChain(int *p,int n,int **m,int **s) { for (int i=1;i
www.eeworm.com/read/125170/14511191

cpp 棋盘覆盖问题.cpp

#include void ChessBoard(int **Board,int tr,int tc,int dr,int dc,int size,int *t) { if(size==1) return; int s=size/2; if(dr
www.eeworm.com/read/123874/14607771

txt 八皇后问题.txt

www.eeworm.com/read/122580/14682621

txt 编程汉字问题.txt

/* 本程序为Windows下的控制台程序,需MFC的支持(否则不能通过编译) * 执行时带一个参数,指定要打开的文件;以每行10个字符(每个中文字符算一个字符), * 最后一行可能不足10个。另外如'\n','\t'等字符可能改变打印格式。 */ #include #include int main(int argc, c
www.eeworm.com/read/221240/14752465

opt n后问题.opt

www.eeworm.com/read/221240/14752466

ncb n后问题.ncb

www.eeworm.com/read/221240/14752469

cpp n后问题.cpp

#include #include #include int n; //皇后个数 static int*x; //当前解 static long sum; //当前已经找到的可行方案数 static bool place(int k) { for(int j=1;j