码迷,mamicode.com
首页 >  
搜索关键字:cstring    ( 6726个结果
luogu P3376 【模板】网络最大流 模板
#include <iostream> #include <cstdio> #include <cstring> #define N 200005 using namespace std; #define int long long int n,m,S,T,tmp1,tmp2,tot; int id ...
分类:其他好文   时间:2020-06-25 13:31:36    阅读次数:58
Selecting Courses
Selecting Courses Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10627 Accepted: 4803 Description It is well known that it is not easy to ...
分类:其他好文   时间:2020-06-24 21:36:57    阅读次数:72
POJ2559Largest Rectangle in a Histogram(单调栈)
传送门 题目大意:给出一个柱状统计图,该统计图由多个宽度为1高度不一的矩形构成,问图中包含最大的矩形面积是多少。 题解:枚举每一个小矩形的高度,以它的高度为所求矩形高度向左右扩展,可知到左边第一个小于它和右边第一个小于它的矩形时扩展结束。 所以用单调栈求每个元素左边第一个小于它和右边第一个小于它的元 ...
分类:其他好文   时间:2020-06-24 21:25:39    阅读次数:56
luogu P4542 [ZJOI2011]营救皮卡丘 网络流 拆点
#include<cstdio> #include<cstring> #include<algorithm> #include<queue> #include<iostream> using namespace std; const int maxn=1e6+10; const int inf=0x ...
分类:其他好文   时间:2020-06-24 12:05:43    阅读次数:37
GetMidStr c++
假如一个CString中保存了一个网页的源码代码,那么我们如何获取我们想要的信息呢。 可以通过这个函数来截取字符串。 CString GetMidStrByLAndR(CString& strSrc, CString strLeft, CString strRight){ CString strRe ...
分类:编程语言   时间:2020-06-24 00:24:24    阅读次数:63
vc获取进程版本号
#param comment(lib, "version.lib") CString &CMonitorManagerDlg::GetApplicationVersion(CString &strVersion){ char cPath[200]; DWORD dwHandle,InfoSize; ...
分类:系统相关   时间:2020-06-22 20:48:34    阅读次数:48
luogu P2762 太空飞行计划问题 网络流24
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #define N 2000005 using namespace std; const int inf=(1 << 28); int n,m,S,T, ...
分类:其他好文   时间:2020-06-21 23:18:17    阅读次数:52
luogu P2774 方格取数问题 网络流24 最小割
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #define N 2000005 using namespace std; const int inf=1000000007; int n,m,S,T ...
分类:其他好文   时间:2020-06-21 20:13:22    阅读次数:46
Codeforces Global Round 8 B - Codeforces Subsequences 构造
#include<map> #include<queue> #include<time.h> #include<limits.h> #include<cmath> #include<ostream> #include<iterator> #include<set> #include<stack> # ...
分类:其他好文   时间:2020-06-21 13:44:09    阅读次数:80
luogu P2765 魔术球问题 网络流24 最小路径问题
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #define N 500000 using namespace std; int n,m,S,T,tmp1,tmp2,tot; int idx,hea ...
分类:其他好文   时间:2020-06-20 18:52:12    阅读次数:51
6726条   上一页 1 ... 21 22 23 24 25 ... 673 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!