摘要: 直接枚举计算就行;#include#include#include#define maxn 22using namespace std;double ans[maxn],p[maxn];bool vis[maxn];int n,r;void dfs(int cur,int cot){ if(c... 阅读全文
posted @ 2014-07-18 17:19 Yours1103 阅读(179) 评论(0) 推荐(0) 编辑
摘要: C题,#include#include#include#define maxn 5005using namespace std;int num[maxn];int rmq(int l,int r){ int ans=1num[i]) { ans=num[i]... 阅读全文
posted @ 2014-07-18 10:15 Yours1103 阅读(194) 评论(0) 推荐(0) 编辑