比较复杂的一个题 需要dp两次 首先要用dp推出 闲家最终为x点庄家赢的概率 然后在递推出闲家和庄家初始状态下 闲家获胜的概率
比赛的时候好不容易敲出来了 结果没过终判 是由于判断闲家时 当庄家与闲家一致 且庄家再继续输赢概率一样 时 我默认是继续摸 结果终判就挂了 后面改成 不继续抓就过了。。。
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<ctime>
#include<cassert>
#include<climits>
#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<deque>
#include<list>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<numeric>
#include<iomanip>
#include<bitset>
#include<sstream>
#include<fstream>
#define bug puts("=============");
#define pi (acos(-1.0))
#define eps (1e-8)
#define inf (1<<30)
#define INF (1ll<<62)
#define scnaf scanf
using namespace std;
typedef long long ll;
const int maxn=35;
map<c