码迷,mamicode.com
首页 >  
搜索关键字:the love-letter mystery    ( 67个结果
一本通 1275:【例9.19】乘积最大
"乘积最大(数据弱化版)" 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
一本通 1276:【例9.20】编辑距离
"编辑距离" 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
一本通 1261:【例9.5】城市交通路网
"城市交通路网" 最短路 + 路径输出 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
一本通 1263:【例9.7】友好城市(数据较弱)
"友好城市" 对北岸(或南岸)的城市从小到大排序,再求南岸(或北岸)的城市位置的最长不下降序列长度即可。 ps:这里数据较弱,用n n的做法可以过。 Code: c++ include include include include using namespace std; //Mystery_Sk ...
分类:其他好文   时间:2019-06-09 22:13:46    阅读次数:144
一本通 1266:【例9.10】机器分配
"机器分配" 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
一本通 1297:公共子序列
"公共子序列" 多组输入的 "最长公共子序列" 。 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
一本通 1268:【例9.12】完全背包问题
"完全背包问题" 完全背包模板题 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
POJ 2115 C Looooops
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
Pick apples(完全背包+贪心)
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
poj2115-Looooops-(扩展欧几里得定理)
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
67条   上一页 1 2 3 4 ... 7 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!