"乘积最大(数据弱化版)" ps:本题无需使用大整数。 Code: c++ include include include using namespace std; //Mystery_Sky // define INF 0x3f3f3f3f define M 500 int f_max[M][M] ...
分类:
其他好文 时间:
2019-06-14 21:50:21
阅读次数:
154
"编辑距离" Code: c++ include include include using namespace std; //Mystery_Sky // define INF 0x3f3f3f3f define M 3000 int f[M][M]; int len_a, len_b; char ...
分类:
其他好文 时间:
2019-06-14 21:47:33
阅读次数:
145
"城市交通路网" 最短路 + 路径输出 Code: c++ include include include include using namespace std; //Mystery_Sky // define M 1000100 define INF 0x3f3f3f3f struct Edge ...
分类:
其他好文 时间:
2019-06-09 22:31:31
阅读次数:
202
"友好城市" 对北岸(或南岸)的城市从小到大排序,再求南岸(或北岸)的城市位置的最长不下降序列长度即可。 ps:这里数据较弱,用n n的做法可以过。 Code: c++ include include include include using namespace std; //Mystery_Sk ...
分类:
其他好文 时间:
2019-06-09 22:13:46
阅读次数:
144
"机器分配" Code: c++ include include include using namespace std; //Mystery_Sky // define M 5000 int f[M][M]; int n, m, ans; int c[M][M]; void print(int i ...
分类:
其他好文 时间:
2019-06-09 20:49:18
阅读次数:
151
"公共子序列" 多组输入的 "最长公共子序列" 。 cpp include include include include using namespace std; //Mystery_Sky // define M 1000 string s1, s2; int f[M][M], len1, le ...
分类:
其他好文 时间:
2019-05-10 20:45:50
阅读次数:
149
"完全背包问题" 完全背包模板题 cpp include include using namespace std; //Mystery_Sky //完全背包模板 define M 1010 int f[M], c[M], w[M]; int v, m, ans; int main() { scanf ...
分类:
其他好文 时间:
2019-05-09 22:12:30
阅读次数:
251
https://cn.vjudge.net/problem/POJ-2115 题目 A Compiler Mystery: We are given a C-language style for loop of type I.e., a loop which starts by setting va ...
分类:
其他好文 时间:
2019-05-06 00:59:29
阅读次数:
152
Description Once ago, there is a mystery yard which only produces three kinds of apples. The number of each kind is infinite. A girl carrying a big ba ...
分类:
移动开发 时间:
2019-04-03 22:26:17
阅读次数:
240
C Looooops Time Limit: 1000MS Memory Limit: 65536K Total Submissions:33752 Accepted: 9832 Description A Compiler Mystery: We are given a C-language st ...
分类:
其他好文 时间:
2019-02-11 15:41:57
阅读次数:
223