码迷,mamicode.com
首页 >  
搜索关键字:struct    ( 18973个结果
POJ - 2926 Requirements
题意:多维的曼哈顿最远距离 思路:做了1,2,3维的,其实就是枚举所有绝对值的可能的表达式 #include #include #include #include using namespace std; const int MAXN = 100005; const int M = 5; const double inf = 1e200; struct node{ double x...
分类:其他好文   时间:2014-05-01 17:31:01    阅读次数:283
c# 播放器 支持所有格式
---恢复内容开始---直接上代码internal static class LibVlcAPI { internal struct PointerToArrayOfPointerHelper { [MarshalAs(UnmanagedTyp...
分类:其他好文   时间:2014-05-01 10:26:29    阅读次数:317
hdu 1233 还是畅通工程
简单最小生成树,继续我的kruskal#include#include#include#includeusing namespace std;const int MAX=1000000;struct node{ int left,right,cost;}road[MAX];bool cmp(n...
分类:其他好文   时间:2014-05-01 09:28:42    阅读次数:333
uva 11988 这题可以看出c++中string效率的底下
用c语言实现 #include #include #include using namespace std; typedef struct node { char x; struct node *next; }chan; chan *root = new chan; char a[100010]; int main() { while(scanf("%...
分类:编程语言   时间:2014-04-29 13:47:20    阅读次数:358
UVA 617 - Nonstop Travel(数论+暴力枚举)
题目链接:617 - Nonstop Travel 题意:给定一些红绿灯,现在速度能在30-60km/h之内,求多少个速度满足一路不遇到红灯。 思路:暴力每一个速度,去判断可不可以,最后注意下输出格式即可 代码: #include #include #include const double esp = 1e-6; int n, vis[105]; struct D { do...
分类:其他好文   时间:2014-04-29 13:45:20    阅读次数:333
最新版dlx模板(精确覆盖+重复覆盖)
以前的代码太挫了,重新整理dlx,学习HH把精确覆盖,重复覆盖整合在一起。 代码: struct DLX{ const static int maxn=20010; #define FF(i,A,s) for(int i = A[s];i != s;i = A[i]) int L[maxn],R[maxn],U[maxn],D[maxn]; int size,c...
分类:其他好文   时间:2014-04-29 13:43:20    阅读次数:370
Linux noop io 调度算法分析
定义了一个elevator_noop的调度器类型:  static struct elevator_type elevator_noop = { .ops = { .elevator_merge_req_fn = noop_merged_requests,//查询一个request,用于将bio并入 .elevator_dispatch_fn = noop_dispatch,/...
分类:系统相关   时间:2014-04-29 13:33:20    阅读次数:830
ZOJ 2588 Burning Bridges 求无向图桥 边双连通裸题
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1588 #include #include #include #include #include using namespace std; #define N 10050 #define M 200005 int n,m;//n个点 m条边 struct Edge{...
分类:其他好文   时间:2014-04-29 13:25:21    阅读次数:383
wustoj 1318 区间的连通性 (最短路)
floyd求最短路。 注意图是有向图。。。 #include #include #include using namespace std; struct node { int x,y,id; }edge[205]; int dis[205][205]; int main() { int c,T,n,a,b,op; while(scanf("%d",&T...
分类:其他好文   时间:2014-04-29 13:21:23    阅读次数:313
set容器的实现
set容器是以红黑树容器为基础实现的,在其基础上稍加改变接口即可 #ifndef MY_SET_H_INCLUDED #define MY_SET_H_INCLUDED #include"my_rb_tree.h" namespace juine { template struct identity { const T& operator()(cons...
分类:其他好文   时间:2014-04-29 13:16:20    阅读次数:376
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!