#include #include int n,r,kase; bool buy[25]; double p[25],s[25];; void dfs(int depth,int bought,double res) { if(bought>r||depth-bought>n-r) return; if(depth>=n) { s[n]+=res; for(int i=0;i