水题,以前总结的模板还是很好用的。 1 #include 2 #include 3 using namespace std; 4 5 const double eps = 1e-8; 6 7 int dcmp(double x) 8 { 9 if(fabs(x) < eps) ret...
分类:
其他好文 时间:
2015-02-02 15:29:23
阅读次数:
206
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml;namespace Xml{class Program{static void Main(string...
题目大意:给定一棵树,每个点初始有一个概率为1,为1的节点会沿着边以边权上的概率向四周扩散,求最终期望有多少个点是1
OTZ 不想写题解了贴个代码吧= =
如果有不明白做法的直接问我就好了= =
#include
#include
#include
#include
#define M 500500
#define EPS 1e-7
using namespace std;
stru...
分类:
其他好文 时间:
2015-02-02 14:16:58
阅读次数:
446
/*
裸lcs(最大公共子序列)
*/
# include
# include
# include
# include
using namespace std;
int c[1010][1010];
int main()
{
int i,j,lena,lenb;
char a[1010],b[1010];
while(~scanf("%s%s",a,b))
...
分类:
其他好文 时间:
2015-02-02 14:13:47
阅读次数:
98
#include
#include
#include
using namespace std;
const int maxn = 10010;
struct edge
{
int v, next;
}e[maxn*2];
int first[maxn], cnt;
int top[maxn], dep[maxn], sz[maxn], f[maxn], son[maxn], rank[m...
分类:
其他好文 时间:
2015-02-02 14:10:08
阅读次数:
107
networkComms.net2.3.1开源版本,基于gpl V3协议。因为不能公开3.x版本的源码,所以基于此版本进行学习。3.X版本进行了诸多改进和Bug修复,使用方法上两者相差不大。namespace NetworkCommsDotNet{ public sealed partial ...
分类:
Web程序 时间:
2015-02-02 14:04:54
阅读次数:
340
networkComms.net2.3.1开源版本,基于gpl V3协议。因为不能公开3.x版本的源码,所以基于此版本进行学习。3.X版本进行了诸多改进和Bug修复,使用方法上两者相差不大。namespace NetworkCommsDotNet{ /// /// Connection...
分类:
Web程序 时间:
2015-02-02 14:04:27
阅读次数:
180
networkComms.net2.3.1开源版本,基于gpl V3协议。因为不能公开3.x版本的源码,所以基于此版本进行学习。3.X版本进行了诸多改进和Bug修复,使用方法上两者相差不大。 namespace NetworkCommsDotNet{ /// /// Connectio...
分类:
Web程序 时间:
2015-02-02 13:54:25
阅读次数:
144
networkComms.net2.3.1开源版本,基于gpl V3协议。因为不能公开3.x版本的源码,所以基于此版本进行学习。3.X版本进行了诸多改进和Bug修复,使用方法上两者相差不大。 namespace NetworkCommsDotNet{ /// /// Connectio...
分类:
Web程序 时间:
2015-02-02 13:53:12
阅读次数:
384
题解:
分块水题。
不懂看代码:
#include
#include
#include
#include
#include
#define N 101000
#define P 2050
#define eps 1e-10
#define max(a,b) ((a)>(b)?(a):(b))
using namespace std;
int n,m;
double h[N];
in...
分类:
其他好文 时间:
2015-02-02 12:36:44
阅读次数:
159