exchanging专题

UVA 10417 Gift Exchanging

题意:对于概率很无解,参考:点击打开链接 #include <iostream>#include <cstdio>#include <cstring>#include <cmath>using namespace std;double p[20][20];int num[10];int N;double ans;void dfs(int cur,double cp){if (cur