#includeusing namespace std;typedef long long ll;const int maxn=10;const int maxm=35;const int INF=1<<29;int n,m,a,b,p;double ans;double t[maxn];double mz[maxm][maxm];double dp[1< =0;s--) { for(int v=1;v<=m;v++) for(int i=0;i >i)&1) { for(int u=1;u<=m;u++) if(mz[v][u]>=0) dp[s&~(1< < >n>>m>>p>>a>>b) { if(n==0&&m==0&&p==0&&a==0&&b==0) break; memset(mz,-1,sizeof(mz)); for(int i=0;i<(1< >t[i]; for(int i=0;i >x>>y; cin>>mz[x][y]; mz[y][x]=mz[x][y]; } dp[(1<
#include#include using namespace std;typedef long long ll;const int maxn=21;const int maxm=21;const int INF=1<<29;int n,m,ans;int mz[maxm][maxm];int dp[1< =0;s--) { if(!dp[s]) continue; for(int j=0;j >n>>m) { memset(mz,0,sizeof(mz)); memset(dp,0,sizeof(dp)); for(int i=0;i >k; for(int j=0;j >temp; temp--; mz[i+1][temp]=1; } } dp[0]=1; DP(); ans=0; for(int i=0;i<(1<
#includeusing namespace std;typedef long long ll;const int maxn=15;const int maxm=15;const int mod=1e8;const int INF=1<<29;int n,m,ans;int mz[maxm][maxm];int v[1< >m>>n) { memset(mz,0,sizeof(mz)); memset(dp,0,sizeof(dp)); for(int i=0;i >mz[i][j]; DP(); ans=0; for(int i=0;v[i]<(1<
#include#include #include #include using namespace std;typedef long long ll;const int maxn=16;int n,m,ans,cnt;int dp[1< =min(x[i],x[j])&&x[k]<=max(x[i],x[j])&& y[k]>=min(y[i],y[j])&&y[k]<=max(y[i],y[j])) cover[cnt]|=(1< >n&&n) { memset(dp,0x3f,sizeof(dp)); for(int i=0;i >x[i]>>y[i]; init(); DP(); cout< < <