G-Wind
摘要:
算法:计算期望值,算出每棵蘑菇的概率,再乘以其期望。View Code #include<stdio.h>#include<stdlib.h>#include<string.h>#include<map>#include<iostream>#include<algorithm>#include<vector>using namespace std;struct pnode{ int h, x, l, r;}p[100100];struct qnode{ int x, w;}q[11000];int N, M;i 阅读全文
posted @ 2012-08-21 16:35 more think, more gains 阅读(195) 评论(0) 推荐(0) 编辑