2016年3月3日
摘要: jrtplib + jthread + pthread libx264 gdi 阅读全文
posted @ 2016-03-03 14:08 Modiz 阅读(238) 评论(0) 推荐(0) 编辑
  2013年5月14日
摘要: 新博客地址:http://blog.csdn.net/modiz 阅读全文
posted @ 2013-05-14 15:29 Modiz 阅读(107) 评论(0) 推荐(0) 编辑
  2013年4月24日
摘要: 阅读全文
posted @ 2013-04-24 10:49 Modiz 阅读(178) 评论(0) 推荐(0) 编辑
  2013年4月23日
摘要: 题目链接:http://openoj.awaysoft.com:8080/judge/contest/view.action?cid=384#problem/DBuilding a Space Station#include<stdio.h>#include<string.h>#include<math.h>doublef[110][110];intvist[110];structnode{doublex,y,z,r;}p[110];doubleff(nodea,nodeb){return(sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y) 阅读全文
posted @ 2013-04-23 10:37 Modiz 阅读(249) 评论(1) 推荐(0) 编辑
  2013年4月19日
摘要: 题目链接:http://openoj.awaysoft.com:8080/judge/contest/contest/view.action?cid=384#problem/BNetwork#include<stdio.h>#include<string.h>#include<stdlib.h>structnode{intx,y,l;}f[15010];intg[1010];intcmp(constvoid*a,constvoid*b){if((*(node*)a).l==(*(node*)b).l){if((*(node*)a).y==(*(node*)b 阅读全文
posted @ 2013-04-19 13:55 Modiz 阅读(129) 评论(0) 推荐(0) 编辑
  2013年4月18日
摘要: 并查集#include<stdio.h>intf[10000];intfind(intn){if(f[n]!=n)f[n]=find(f[n]);returnf[n];}intmain(){inti,b,a,t,n,m;while(~scanf("%d%d%d",&m,&n,&t)){for(i=1;i<=m;i++)f[i]=i;for(i=1;i<=n;i++){scanf("%d%d",&a,&b);a=find(a);b=find(b);f[a]=b;}for(i=1;i<=t 阅读全文
posted @ 2013-04-18 19:14 Modiz 阅读(109) 评论(0) 推荐(0) 编辑
  2013年4月16日
摘要: 题目链接:http://openoj.awaysoft.com:8080/judge/contest/contest/view.action?cid=384#problem/I Arctic Network#include<stdio.h>#include<string.h>#include<math.h>#include<stdlib.h>doubledis[510][510];intvist[510];structnode{intx,y;}p[510];doublemap(nodea,nodeb){return(sqrt((a.x-b.x)* 阅读全文
posted @ 2013-04-16 22:19 Modiz 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://openoj.awaysoft.com:8080/judge/contest/view.action?cid=384#problem/J Agri-Net#include<stdio.h>#include<string.h>intdis[110][110];intvist[110];intmain(){inti,j,t,n;while(~scanf("%d",&n)){__int64s=0;for(i=1;i<=n;i++)for(j=1;j<=n;j++)scanf("%d",& 阅读全文
posted @ 2013-04-16 19:51 Modiz 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://openoj.awaysoft.com:8080/judge/contest/view.action?cid=384#problem/A1#include<stdio.h>2#include<string.h>3#include<math.h>4doubledis[110][110];5intvist[110];67structnode8{9doublex,y;10}p[105];1112doublemap(nodea,nodeb)13{14return(sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y- 阅读全文
posted @ 2013-04-16 19:15 Modiz 阅读(199) 评论(0) 推荐(0) 编辑
  2013年4月12日
摘要: 有N个顶点,每个顶点有一个权值,初始值皆为0。接下来有M次操作,操作内容为 [a,b) or [b,a),将区间内顶点i 权值置为1,求最后顶点权值为0的数量。1#include<stdio.h>2#include<string.h>3intmain()4{5intn,m,a,b,i;6intf[50010];7while(~scanf("%d%d",&n,&m))8{9memset(f,0,sizeof(f));10for(i=1;i<=m;i++)11{12scanf("%d%d",&a,& 阅读全文
posted @ 2013-04-12 17:52 Modiz 阅读(128) 评论(0) 推荐(0) 编辑