![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
poj
PourVous
这个作者很懒,什么都没留下…
展开
-
poj2392多重背包
#include <iostream>#include <algorithm>#include <cstdio>#include <string.h>using namespace std;const int INF = 99999999;struct node{ int x; int y; int z;};...原创 2019-07-30 13:27:58 · 101 阅读 · 0 评论 -
poj1323 贪心
#include <iostream>#include <algorithm>#include <cstdio>#include <string.h>#include <vector>using namespace std;const int INF = 99999999;int n,k;int a[1005];boo...原创 2019-07-30 16:48:36 · 89 阅读 · 0 评论 -
poj1062 2019 H
#include <iostream>#include <map>#include <queue>#include <string.h>using namespace std;const int INF = 9999999;int maze[105][105];int value[305];int level[305];bool ...原创 2019-08-03 14:29:19 · 96 阅读 · 0 评论 -
百炼2988:计算字符串距离
2988:计算字符串距离查看 提交 统计 提问总时间限制:1000ms内存限制:65536kB描述对于两个不同的字符串,我们有一套操作方法来把他们变得相同,具体方法为:修改一个字符(如把“a”替换为“b”) 删除一个字符(如把“traveling”变为“travelng”)比如对于“abcdefg”和“abcdef”两个字符串来说,我们认为可以通过增加/减...原创 2019-07-31 09:51:35 · 123 阅读 · 0 评论 -
上交oj1219 2018计算机学科夏令营上机考试 E:重要逆序对
http://bailian.openjudge.cn/xly2018/E/#include <bits/stdc++.h>using namespace std;int visited[30];long long ans = 0;int n;int a[500005];int temp[500005];void Merge(int a[],int l1,int r...原创 2019-08-01 11:03:50 · 413 阅读 · 0 评论 -
POJ1481 The Die Is Cast (bfs+bfs)
http://poj.org/showmessage?message_id=159857巨佬的测试数据 我的第二组数据在每加那个之前有0‘原创 2019-07-27 21:10:29 · 116 阅读 · 0 评论 -
poj1860 floyd变形
//坑点在于要使用两次floyd因为可能存在不是起始货币的环#include <iostream>#include <algorithm>#include <cmath>#include <cstdio>#include <string.h>#include <algorithm>#include <...原创 2019-08-06 16:47:14 · 154 阅读 · 0 评论 -
poj1094 Sorting It All Out(拓扑排序)
Sorting It All OutTime Limit: 1000MS Memory Limit: 10000K Total Submissions: 42094 Accepted: 14742 DescriptionAn ascending sorted sequence of distinct values is one in which so...原创 2019-08-09 11:03:31 · 119 阅读 · 0 评论