代码搜索:Num

找到约 10,000 项符合「Num」的源代码

代码结果 10,000
www.eeworm.com/read/455595/7369717

txt 连续串之和.txt

#include #include using namespace std; //连续串之和 /* 输入 8 4 输出 0 1 2 1 0 -1 0 1 问题转述: 给出一个具有性质A的串集P和一个具有性质B的串集Q,试判断P Q是否是空集。若不是,试给出其中的一个元素。 分析: 这一题目显然无法把所有可能的
www.eeworm.com/read/455595/7369720

txt pku 1023 正负进制.txt

#include #include #include #include using namespace std; //PKU 1023 正负进制 #define NMAX 100 void solve(char *str,__int64 x,__int64 num) { __int64 t=
www.eeworm.com/read/455594/7369725

txt noj 1007 加分二叉树 动态规划 树的遍列.txt

#include #include #include using namespace std; //NOJ 1007 加分二叉树 动态规划 树的遍列 /* 输入: 5 5 7 1 2 10 输出: 145 3 1 2 4 5 */ #define NMAX 32 long f[NMAX][NMAX]
www.eeworm.com/read/455594/7369726

txt 接苹果 动态规划法.txt

//接苹果 动态规划法 //PKU 2385 /* 输入 12 2 2 2 2 2 1 2 1 1 2 2 2 1 输出 9 */ #include #include #include using namespace std; int apple[1002]; int f[1002][50];//
www.eeworm.com/read/455594/7369729

txt pku 1221 凸回文数.txt

#include #include #include #include #include #include using namespace std; #define PB push_back //PKU 1221 凸回文数 #define NMAX 10
www.eeworm.com/read/455594/7369730

txt 最大连续和的最小值.txt

#include #include #include using namespace std; #define CISHUMAX 105 #define SHITOUMAX 100005 #define MAX 9999999 int f[SHITOUMAX][CISHUMAX]; int weight[SHITO
www.eeworm.com/read/455594/7369732

txt 求多短路的最短路径,用动态规划法.txt

#include //求多短路的最短路径,用动态规划法 /* 输入 10 18 0 1 4 0 2 2 0 3 3 1 4 9 1 5 8 2 4 6 2 5 7 2 6 8 3 5 4 3 6 7 4 7 5 4 8 6 5 7 8 5 8 6 6 7 6 6 8 5 7 9 7 8 9 3 输出 0->3->5-
www.eeworm.com/read/455594/7369733

txt noj 1066 poj 3073 spam 动态规划 .txt

#include #include #include #include #include #include using namespace std; //NOJ 1066 POJ 3073 Spam 动态规划 //动态规划不难想,字符串处理让人头大-
www.eeworm.com/read/455594/7369735

txt 石头合并问题.txt

#include #include using namespace std; //石头合并问题 PKU 1086 动态规划 /* 输入: 4 4 1 2 3 输出: */ #define MAX 1000000000 int a[202];//每个石头的重量 long f[202][202];//f[i][j],第i个
www.eeworm.com/read/455594/7369737

txt 最大乘积 动态规划.txt

#include #include #include #include #include using namespace std; //最大乘积 动态规划 #define NMAX 12 #define CMAX 7 __int64 f[NMAX][CMAX];//f[i]