#include using namespace std; typedef unsigned int uint; typedef long long int ll; typedef unsigned long long int ull; #define debugv(v) printf("L%d %s => ",__LINE__,#v);for(auto e:v){cout< ",__LINE__,#m);for(int x=0;x<(w);x++){cout<<(m)[x]<<" ";}cout< ostream& operator <<(ostream &o,const pair p){o<<"("< dist1(0.0,1.0); int n; int carda[30]; int cardb[30]; double pb,pa; int test(){ int i,j; int bita=0,bitb=0,turn=0; int choicea,choiceb; int score=0; uint gen; double gend; for (i=n;2<=i;i--){ if (pa>=dist1(rnd)){ choicea=0; }else{ choicea=1+(int)(dist1(rnd)*(i-1)); assert(choicea!=i); } if (pb>=dist1(rnd)){ choiceb=0; }else{ choiceb=1+(int)(dist1(rnd)*(i-1)); assert(choiceb!=i); } for (j=0;j<=choicea;j++) if (bita&(1<choiceb ? 1 : -1); } // final for (j=0;jchoiceb ? 1 : -1); return score > 0; } const int trycount=180000; int main(){ int i,j,k,l; cin>>n>>pa>>pb; for (i=0;i